public abstract class AbstractIterCalc extends AbstractCalc implements IterCalc
IterCalc interface.
The derived class must
implement the IterCalc.evaluateIterable(mondrian.olap.Evaluator) method,
and the evaluate(mondrian.olap.Evaluator) method will call it.
AbstractListCalcexp, type| Modifier | Constructor and Description |
|---|---|
protected |
AbstractIterCalc(Exp exp,
Calc[] calcs)
Creates an abstract implementation of a compiled expression which returns
a
TupleIterable. |
| Modifier and Type | Method and Description |
|---|---|
Object |
evaluate(Evaluator evaluator)
Evaluates this expression.
|
ResultStyle |
getResultStyle()
Returns style in which the result of evaluating this expression is
returned.
|
SetType |
getType()
Returns the type of this expression.
|
String |
toString() |
accept, anyDepends, anyDependsButFirst, butDepends, collectArguments, dependsOn, getArguments, getCalcs, getName, isWrapperFor, simplifyEvaluator, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitevaluateIterableaccept, dependsOn, isWrapperFor, unwrapprotected AbstractIterCalc(Exp exp, Calc[] calcs)
TupleIterable.exp - Expression which was compiledcalcs - List of child compiled expressions (for dependency
analysis)public SetType getType()
CalcgetType in interface CalcgetType in class AbstractCalcpublic final Object evaluate(Evaluator evaluator)
Calcpublic ResultStyle getResultStyle()
CalcOne application of this method is for the compiler to figure out whether the compiled expression is returning a mutable list. If a mutable list is required, the compiler can create a mutable copy.
getResultStyle in interface CalcgetResultStyle in class AbstractCalcExpCompiler.compileList(mondrian.olap.Exp, boolean)Copyright © 2021 Hitachi Vantara. All rights reserved.