Package mondrian.olap
Class ExpCacheDescriptor
- java.lang.Object
-
- mondrian.olap.ExpCacheDescriptor
-
public class ExpCacheDescriptor extends Object
Holds information necessary to add an expression to the expression result cache (seeEvaluator.getCachedResult(ExpCacheDescriptor)
).- Since:
- Aug 16, 2005
- Author:
- jhyde
-
-
Constructor Summary
Constructors Constructor Description ExpCacheDescriptor(Exp exp, Calc calc, Evaluator evaluator)
Creates a descriptor with a given compiled expression.ExpCacheDescriptor(Exp exp, ExpCompiler compiler)
Creates a descriptor.ExpCacheDescriptor(Exp exp, Evaluator evaluator)
Creates a descriptor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
evaluate(Evaluator evaluator)
Calc
getCalc()
int[]
getDependentHierarchyOrdinals()
Returns the ordinals of the hierarchies which this expression is dependent upon.Exp
getExp()
-
-
-
Constructor Detail
-
ExpCacheDescriptor
public ExpCacheDescriptor(Exp exp, Calc calc, Evaluator evaluator)
Creates a descriptor with a given compiled expression.- Parameters:
exp
- Expressioncalc
- Compiled expressionevaluator
- Evaluator
-
ExpCacheDescriptor
public ExpCacheDescriptor(Exp exp, Evaluator evaluator)
Creates a descriptor.- Parameters:
exp
- Expressionevaluator
- Evaluator
-
ExpCacheDescriptor
public ExpCacheDescriptor(Exp exp, ExpCompiler compiler)
Creates a descriptor.- Parameters:
exp
- Expressioncompiler
- Compiler
-
-
Method Detail
-
getExp
public Exp getExp()
-
getCalc
public Calc getCalc()
-
getDependentHierarchyOrdinals
public int[] getDependentHierarchyOrdinals()
Returns the ordinals of the hierarchies 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 hierarchies.
-
-