|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mondrian.rolap.RolapEvaluator.RolapEvaluatorRoot
protected static class RolapEvaluator.RolapEvaluatorRoot
Field Summary | |
---|---|
(package private) Map<List<Object>,Calc> |
compiledExps
|
(package private) RolapConnection |
connection
|
(package private) RolapCube |
cube
|
(package private) SqlQuery.Dialect |
currentDialect
|
(package private) Map<Object,Object> |
expResultCache
|
(package private) SchemaReader |
schemaReader
|
(package private) Map<Object,Object> |
tmpExpResultCache
|
Constructor Summary | |
---|---|
RolapEvaluator.RolapEvaluatorRoot(Query query)
|
Method Summary | |
---|---|
void |
clearResultCache(boolean clearValidResult)
Clears the expression result cache. |
protected Object |
evaluateNamedSet(String name,
Exp exp)
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. |
protected void |
init(Evaluator evaluator)
First evaluator calls this method on construction. |
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<List<Object>,Calc> compiledExps
final SqlQuery.Dialect currentDialect
Constructor Detail |
---|
public RolapEvaluator.RolapEvaluatorRoot(Query query)
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 Object evaluateNamedSet(String name, Exp exp)
The default implementation throws
UnsupportedOperationException
.
protected void init(Evaluator evaluator)
public 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 |