Package mondrian.rolap
Class RolapResult.RolapResultEvaluatorRoot
- java.lang.Object
-
- mondrian.rolap.RolapEvaluatorRoot
-
- mondrian.rolap.RolapResult.RolapResultEvaluatorRoot
-
- Direct Known Subclasses:
RolapDependencyTestingEvaluator.DteRoot
- Enclosing class:
- RolapResult
protected static class RolapResult.RolapResultEvaluatorRoot extends RolapEvaluatorRoot
Extension toRolapEvaluatorRoot
which is capable of evaluating sets and named sets. A given set is only evaluated once each time a query is executed; the result is added to thenamedSetEvaluators
cache on first execution and re-used.Named sets are always evaluated in the context of the slicer.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) RolapResult
result
-
Fields inherited from class mondrian.rolap.RolapEvaluatorRoot
activeNativeExpansions, compiledExps, connection, cube, currentDialect, defaultMembers, execution, expResultCache, nonAllPositionCount, nonAllPositions, query, recursionCheckCommandCount, schemaReader, solveOrderMode, statement, tmpExpResultCache
-
-
Constructor Summary
Constructors Constructor Description RolapResultEvaluatorRoot(RolapResult result)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Evaluator.NamedSetEvaluator
evaluateNamedSet(NamedSet namedSet, boolean create)
Evaluates a named set.protected Evaluator.SetEvaluator
evaluateSet(Exp exp, boolean create)
Evaluates a named set represented by an expression.Object
getParameterValue(ParameterSlot slot)
Returns the value of a parameter, evaluating its default expression if necessary.-
Methods inherited from class mondrian.rolap.RolapEvaluatorRoot
clearResultCache, getCacheResult, getCompiled, getQueryStartTime, putCacheResult
-
-
-
-
Field Detail
-
result
final RolapResult result
-
-
Constructor Detail
-
RolapResultEvaluatorRoot
public RolapResultEvaluatorRoot(RolapResult result)
-
-
Method Detail
-
evaluateNamedSet
protected Evaluator.NamedSetEvaluator evaluateNamedSet(NamedSet namedSet, boolean create)
Description copied from class:RolapEvaluatorRoot
Evaluates a named set.The default implementation throws
UnsupportedOperationException
.- Overrides:
evaluateNamedSet
in classRolapEvaluatorRoot
- Parameters:
namedSet
- Named setcreate
- Whether to create named set evaluator if not found
-
evaluateSet
protected Evaluator.SetEvaluator evaluateSet(Exp exp, boolean create)
Description copied from class:RolapEvaluatorRoot
Evaluates a named set represented by an expression.The default implementation throws
UnsupportedOperationException
.- Overrides:
evaluateSet
in classRolapEvaluatorRoot
- Parameters:
exp
- Expressioncreate
- Whether to create named set evaluator if not found
-
getParameterValue
public Object getParameterValue(ParameterSlot slot)
Description copied from class:RolapEvaluatorRoot
Returns the value of a parameter, evaluating its default expression if necessary.The default implementation throws
UnsupportedOperationException
.- Overrides:
getParameterValue
in classRolapEvaluatorRoot
-
-