Package mondrian.olap.fun
Class MemberOrderKeyFunDef.CalcImpl
- java.lang.Object
-
- mondrian.calc.impl.AbstractCalc
-
- 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
Constructors Constructor Description CalcImpl(Exp exp, MemberCalc memberCalc)
Creates a Calc
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OrderKey
evaluate(Evaluator evaluator)
Evaluates this expression.protected 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, collectArguments, dependsOn, getArguments, getCalcs, getResultStyle, getType, isWrapperFor, simplifyEvaluator, unwrap
-
-
-
-
Constructor Detail
-
CalcImpl
public CalcImpl(Exp exp, MemberCalc memberCalc)
Creates a Calc- Parameters:
exp
- Source expressionmemberCalc
- Compiled expression to calculate member
-
-
Method Detail
-
evaluate
public 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 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 classAbstractCalc
-
-