mondrian.rolap
Class RolapResult.RolapResultEvaluatorRoot

java.lang.Object
  extended by mondrian.rolap.RolapEvaluator.RolapEvaluatorRoot
      extended by mondrian.rolap.RolapResult.RolapResultEvaluatorRoot
Direct Known Subclasses:
RolapDependencyTestingEvaluator.DteRoot
Enclosing class:
RolapResult

protected static class RolapResult.RolapResultEvaluatorRoot
extends RolapEvaluator.RolapEvaluatorRoot

Extension to RolapEvaluator.RolapEvaluatorRoot which is capable of evaluating named sets.

A given set is only evaluated once each time a query is executed; the result is added to the namedSetValues cache on first execution and re-used.

Named sets are always evaluated in the context of the slicer.

 

Field Summary
 
Fields inherited from class mondrian.rolap.RolapEvaluator.RolapEvaluatorRoot
compiledExps, connection, cube, currentDialect, expResultCache, schemaReader, tmpExpResultCache
 
Constructor Summary
RolapResult.RolapResultEvaluatorRoot(RolapResult result)
           
 
Method Summary
protected  Object evaluateNamedSet(String name, Exp exp)
          Evaluates a named set.
 Object getParameterValue(ParameterSlot slot)
          Returns the value of a parameter, evaluating its default expression if necessary.
protected  void init(Evaluator evaluator)
          First evaluator calls this method on construction.
 
Methods inherited from class mondrian.rolap.RolapEvaluator.RolapEvaluatorRoot
clearResultCache, getCacheResult, getCompiled, getQueryStartTime, putCacheResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RolapResult.RolapResultEvaluatorRoot

public RolapResult.RolapResultEvaluatorRoot(RolapResult result)
Method Detail

init

protected void init(Evaluator evaluator)
Description copied from class: RolapEvaluator.RolapEvaluatorRoot
First evaluator calls this method on construction.

Overrides:
init in class RolapEvaluator.RolapEvaluatorRoot

evaluateNamedSet

protected Object evaluateNamedSet(String name,
                                  Exp exp)
Description copied from class: RolapEvaluator.RolapEvaluatorRoot
Evaluates a named set.

The default implementation throws UnsupportedOperationException.

Overrides:
evaluateNamedSet in class RolapEvaluator.RolapEvaluatorRoot

getParameterValue

public Object getParameterValue(ParameterSlot slot)
Description copied from class: RolapEvaluator.RolapEvaluatorRoot
Returns the value of a parameter, evaluating its default expression if necessary.

The default implementation throws UnsupportedOperationException.

Overrides:
getParameterValue in class RolapEvaluator.RolapEvaluatorRoot

SourceForge.net_Logo