Package mondrian.rolap
Class RolapResult.RolapResultEvaluatorRoot
java.lang.Object
mondrian.rolap.RolapResult.RolapResultEvaluatorRoot
- Enclosing class:
- RolapResult
Extension to
RolapEvaluatorRoot
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 the
namedSetEvaluators
cache on first execution and re-used.
Named sets are always evaluated in the context of the slicer.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
clearResultCache
(boolean clearValidResult) Clears the expression result cache.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.final Object
getCacheResult
(Object key) Gets result from cache.Returns the value of a parameter, evaluating its default expression if necessary.Get query start time.final void
putCacheResult
(Object key, Object result, boolean isValidResult) Puts result in cache.
-
Field Details
-
execution
-
-
Constructor Details
-
RolapResultEvaluatorRoot
-
-
Method Details
-
evaluateNamedSet
Evaluates a named set.The default implementation throws
UnsupportedOperationException
.- Parameters:
namedSet
- Named setcreate
- Whether to create named set evaluator if not found
-
evaluateSet
Evaluates a named set represented by an expression.The default implementation throws
UnsupportedOperationException
.- Parameters:
exp
- Expressioncreate
- Whether to create named set evaluator if not found
-
getParameterValue
Returns the value of a parameter, evaluating its default expression if necessary.The default implementation throws
UnsupportedOperationException
. -
putCacheResult
Puts result in cache.- Parameters:
key
- keyresult
- value to be cachedisValidResult
- indicate if this result is valid
-
getCacheResult
Gets result from cache.- Parameters:
key
- cache key- Returns:
- cached expression
-
clearResultCache
public final void clearResultCache(boolean clearValidResult) Clears the expression result cache.- Parameters:
clearValidResult
- whether to clear valid expression results
-
getQueryStartTime
Get query start time.- Returns:
- the query start time
-