mondrian.olap
Class ExpCacheDescriptor

java.lang.Object
  extended by mondrian.olap.ExpCacheDescriptor

public class ExpCacheDescriptor
extends Object

Holds information necessary to add an expression to the expression result cache (see Evaluator.getCachedResult(ExpCacheDescriptor)).

Since:
Aug 16, 2005
Author:
jhyde
 

Constructor Summary
ExpCacheDescriptor(Exp exp, Calc calc, Evaluator evaluator)
           
ExpCacheDescriptor(Exp exp, Evaluator evaluator)
          Creates a descriptor.
ExpCacheDescriptor(Exp exp, ExpCompiler compiler)
          Creates a descriptor.
 
Method Summary
 Object evaluate(Evaluator evaluator)
           
 Calc getCalc()
           
 int[] getDependentDimensionOrdinals()
          Returns the ordinals of the dimensions which this expression is dependent upon.
 Exp getExp()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpCacheDescriptor

public ExpCacheDescriptor(Exp exp,
                          Calc calc,
                          Evaluator evaluator)

ExpCacheDescriptor

public ExpCacheDescriptor(Exp exp,
                          Evaluator evaluator)
Creates a descriptor.


ExpCacheDescriptor

public ExpCacheDescriptor(Exp exp,
                          ExpCompiler compiler)
Creates a descriptor.

Method Detail

getExp

public Exp getExp()

getCalc

public Calc getCalc()

evaluate

public Object evaluate(Evaluator evaluator)

getDependentDimensionOrdinals

public int[] getDependentDimensionOrdinals()
Returns the ordinals of the dimensions which this expression is dependent upon. When the cache descriptor is used to generate a cache key, the key will consist of a member from each of these dimensions.


SourceForge.net_Logo