class RolapEvaluatorRoot extends Object
Contains the context that does not change as evaluation context is pushed/popped.
| Modifier and Type | Field and Description | 
|---|---|
(package private) Set<Exp> | 
activeNativeExpansions  | 
(package private) Map<mondrian.rolap.RolapEvaluatorRoot.CompiledExpKey,Calc> | 
compiledExps  | 
(package private) RolapConnection | 
connection  | 
(package private) RolapCube | 
cube  | 
(package private) Dialect | 
currentDialect  | 
(package private) RolapMember[] | 
defaultMembers
Default members of each hierarchy, from the schema reader's
 perspective. 
 | 
Execution | 
execution  | 
(package private) Map<Object,Object> | 
expResultCache  | 
(package private) int | 
nonAllPositionCount  | 
(package private) int[] | 
nonAllPositions  | 
(package private) Query | 
query  | 
(package private) int | 
recursionCheckCommandCount
The size of the command stack at which we will next check for recursion. 
 | 
(package private) SchemaReader | 
schemaReader  | 
(package private) SolveOrderMode | 
solveOrderMode  | 
(package private) Statement | 
statement  | 
(package private) Map<Object,Object> | 
tmpExpResultCache  | 
| Constructor and Description | 
|---|
RolapEvaluatorRoot(Execution execution)  | 
RolapEvaluatorRoot(Statement statement)
Deprecated.   
 | 
| 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. 
 | 
(package private) Calc | 
getCompiled(Exp exp,
           boolean scalar,
           ResultStyle resultStyle)
Implements a cheap-and-cheerful mapping from expressions to compiled
 expressions. 
 | 
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. 
 | 
final RolapCube cube
final RolapConnection connection
final SchemaReader schemaReader
final Statement statement
final Query query
final Dialect currentDialect
final RolapMember[] defaultMembers
final int[] nonAllPositions
int nonAllPositionCount
final SolveOrderMode solveOrderMode
int recursionCheckCommandCount
public final Execution execution
public RolapEvaluatorRoot(Statement statement)
statement - statementpublic RolapEvaluatorRoot(Execution execution)
final Calc getCompiled(Exp exp, boolean scalar, ResultStyle resultStyle)
TODO: Save compiled expressions somewhere better.
exp - Expressionscalar - Whether expression is scalarresultStyle - Preferred result style; if null, use query's default
     result style; ignored if expression is scalarprotected 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()