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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal voidclearResultCache(boolean clearValidResult) Clears the expression result cache.protected Evaluator.NamedSetEvaluatorevaluateNamedSet(NamedSet namedSet, boolean create) Evaluates a named set.protected Evaluator.SetEvaluatorevaluateSet(Exp exp, boolean create) Evaluates a named set represented by an expression.final ObjectgetCacheResult(Object key) Gets result from cache.Returns the value of a parameter, evaluating its default expression if necessary.Get query start time.final voidputCacheResult(Object key, Object result, boolean isValidResult) Puts result in cache.
- 
Field Details- 
execution
 
- 
- 
Constructor Details- 
RolapResultEvaluatorRoot
 
- 
- 
Method Details- 
evaluateNamedSetEvaluates a named set.The default implementation throws UnsupportedOperationException.- Parameters:
- namedSet- Named set
- create- Whether to create named set evaluator if not found
 
- 
evaluateSetEvaluates a named set represented by an expression.The default implementation throws UnsupportedOperationException.- Parameters:
- exp- Expression
- create- Whether to create named set evaluator if not found
 
- 
getParameterValueReturns the value of a parameter, evaluating its default expression if necessary.The default implementation throws UnsupportedOperationException.
- 
putCacheResultPuts result in cache.- Parameters:
- key- key
- result- value to be cached
- isValidResult- indicate if this result is valid
 
- 
getCacheResultGets result from cache.- Parameters:
- key- cache key
- Returns:
- cached expression
 
- 
clearResultCachepublic final void clearResultCache(boolean clearValidResult) Clears the expression result cache.- Parameters:
- clearValidResult- whether to clear valid expression results
 
- 
getQueryStartTimeGet query start time.- Returns:
- the query start time
 
 
-