mondrian.olap.fun
Class MemberOrderKeyFunDef.CalcImpl

java.lang.Object
  extended by mondrian.calc.impl.AbstractCalc
      extended by mondrian.olap.fun.MemberOrderKeyFunDef.CalcImpl
All Implemented Interfaces:
Calc
Enclosing class:
MemberOrderKeyFunDef

public static class MemberOrderKeyFunDef.CalcImpl
extends AbstractCalc


Field Summary
 
Fields inherited from class mondrian.calc.impl.AbstractCalc
exp, type
 
Constructor Summary
MemberOrderKeyFunDef.CalcImpl(Exp exp, MemberCalc memberCalc)
          Creates a CalcImpl.
 
Method Summary
 FunUtil.OrderKey evaluate(Evaluator evaluator)
          Evaluates this expression.
protected  java.lang.String getName()
          Returns the name of this expression type, used when serializing an expression to a string.
 
Methods inherited from class mondrian.calc.impl.AbstractCalc
accept, anyDepends, anyDependsButFirst, butDepends, dependsOn, getArguments, getCalcs, getResultStyle, getType, simplifyEvaluator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemberOrderKeyFunDef.CalcImpl

public MemberOrderKeyFunDef.CalcImpl(Exp exp,
                                     MemberCalc memberCalc)
Creates a CalcImpl.

Parameters:
exp - Source expression
memberCalc - Compiled expression to calculate member
Method Detail

evaluate

public FunUtil.OrderKey evaluate(Evaluator evaluator)
Description copied from interface: Calc
Evaluates this expression.

Parameters:
evaluator - Provides dimensional context in which to evaluate this expression
Returns:
Result of expression evaluation

getName

protected java.lang.String getName()
Description copied from class: AbstractCalc
Returns the name of this expression type, used when serializing an expression to a string.

The default implementation tries to extract a name from a function call, if any, then prints the last part of the class name.

Overrides:
getName in class AbstractCalc

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