|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.rolap.RolapEvaluatorRoot
class RolapEvaluatorRoot
Context at the root of a tree of evaluators.
Contains the context that does not change as evaluation context is pushed/popped.
| Field Summary | |
|---|---|
(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 Summary | |
|---|---|
RolapEvaluatorRoot(Execution execution)
|
|
RolapEvaluatorRoot(Statement statement)
Deprecated. |
|
| Method Summary | |
|---|---|
void |
clearResultCache(boolean clearValidResult)
Clears the expression result cache. |
protected Evaluator.NamedSetEvaluator |
evaluateNamedSet(NamedSet namedSet,
boolean create)
Evaluates a named set. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
final Map<Object,Object> expResultCache
final Map<Object,Object> tmpExpResultCache
final RolapCube cube
final RolapConnection connection
final SchemaReader schemaReader
final Map<mondrian.rolap.RolapEvaluatorRoot.CompiledExpKey,Calc> compiledExps
final Statement statement
final Query query
final Dialect currentDialect
final RolapMember[] defaultMembers
final int[] nonAllPositions
int nonAllPositionCount
final SolveOrderMode solveOrderMode
final Set<Exp> activeNativeExpansions
int recursionCheckCommandCount
public final Execution execution
| Constructor Detail |
|---|
public RolapEvaluatorRoot(Statement statement)
statement - statementpublic RolapEvaluatorRoot(Execution execution)
| Method Detail |
|---|
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 scalar
protected Evaluator.NamedSetEvaluator evaluateNamedSet(NamedSet namedSet,
boolean create)
The default implementation throws
UnsupportedOperationException.
namedSet - Named setcreate - 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 key
public final void clearResultCache(boolean clearValidResult)
clearValidResult - whether to clear valid expression resultspublic Date getQueryStartTime()
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||