protected static class RolapResult.RolapResultEvaluatorRoot extends Object
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.
| Constructor and Description | 
|---|
RolapResultEvaluatorRoot(RolapResult result)  | 
| Modifier and Type | Method and Description | 
|---|---|
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. 
 | 
Object | 
getCacheResult(Object key)
Gets result from cache. 
 | 
Object | 
getParameterValue(ParameterSlot slot)
Returns the value of a parameter, evaluating its default expression
 if necessary. 
 | 
Date | 
getQueryStartTime()
Get query start time. 
 | 
void | 
putCacheResult(Object key,
              Object result,
              boolean isValidResult)
Puts result in cache. 
 | 
public final Execution execution
public RolapResultEvaluatorRoot(RolapResult result)
protected Evaluator.NamedSetEvaluator evaluateNamedSet(NamedSet namedSet, boolean create)
The default implementation throws
 UnsupportedOperationException.
namedSet - Named setcreate - Whether to create named set evaluator if not foundprotected Evaluator.SetEvaluator evaluateSet(Exp exp, boolean create)
The default implementation throws
 UnsupportedOperationException.
exp - Expressioncreate - Whether to create named set evaluator if not foundpublic Object getParameterValue(ParameterSlot slot)
The default implementation throws
 UnsupportedOperationException.
public final void putCacheResult(Object key, Object result, boolean isValidResult)
key - keyresult - value to be cachedisValidResult - indicate if this result is validpublic final Object getCacheResult(Object key)
key - cache keypublic final void clearResultCache(boolean clearValidResult)
clearValidResult - whether to clear valid expression resultspublic Date getQueryStartTime()
Copyright © 2019 Hitachi Vantara. All rights reserved.