mondrian.rolap
Class RolapResult.RolapResultEvaluatorRoot

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

protected static class RolapResult.RolapResultEvaluatorRoot
extends RolapEvaluatorRoot

Extension to 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 namedSetEvaluators cache on first execution and re-used.

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


Field Summary
(package private)  RolapResult result
           
(package private)  RolapEvaluator slicerEvaluator
          Evaluator containing context resulting from evaluating the slicer.
 
Fields inherited from class mondrian.rolap.RolapEvaluatorRoot
compiledExps, connection, cube, currentDialect, defaultMembers, expResultCache, query, schemaReader, solveOrderMode, tmpExpResultCache
 
Constructor Summary
RolapResult.RolapResultEvaluatorRoot(RolapResult result)
           
 
Method Summary
protected  Evaluator.NamedSetEvaluator evaluateNamedSet(NamedSet namedSet, boolean create)
          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.RolapEvaluatorRoot
clearResultCache, getCacheResult, getCompiled, getQueryStartTime, putCacheResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

slicerEvaluator

RolapEvaluator slicerEvaluator
Evaluator containing context resulting from evaluating the slicer.


result

final RolapResult result
Constructor Detail

RolapResult.RolapResultEvaluatorRoot

public RolapResult.RolapResultEvaluatorRoot(RolapResult result)
Method Detail

init

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

Overrides:
init in class RolapEvaluatorRoot

evaluateNamedSet

protected Evaluator.NamedSetEvaluator evaluateNamedSet(NamedSet namedSet,
                                                       boolean create)
Description copied from class: RolapEvaluatorRoot
Evaluates a named set.

The default implementation throws UnsupportedOperationException.

Overrides:
evaluateNamedSet in class RolapEvaluatorRoot
Parameters:
namedSet - Named set
create - Whether to create named set evaluator if not found

getParameterValue

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

The default implementation throws UnsupportedOperationException.

Overrides:
getParameterValue in class RolapEvaluatorRoot

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads