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 (see Evaluator.getCachedResult(ExpCacheDescriptor)).
Since:
Aug 16, 2005
Author:
jhyde
  • Constructor Details

    • ExpCacheDescriptor

      public ExpCacheDescriptor(Exp exp, Calc calc, Evaluator evaluator)
      Creates a descriptor with a given compiled expression.
      Parameters:
      exp - Expression
      calc - Compiled expression
      evaluator - Evaluator
    • ExpCacheDescriptor

      public ExpCacheDescriptor(Exp exp, Evaluator evaluator)
      Creates a descriptor.
      Parameters:
      exp - Expression
      evaluator - Evaluator
    • ExpCacheDescriptor

      public ExpCacheDescriptor(Exp exp, ExpCompiler compiler)
      Creates a descriptor.
      Parameters:
      exp - Expression
      compiler - Compiler
  • Method Details

    • getExp

      public Exp getExp()
    • getCalc

      public Calc getCalc()
    • evaluate

      public Object evaluate(Evaluator evaluator)
    • 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.