Package mondrian.olap.fun
Class SetFunDef.ExprIterCalc
- java.lang.Object
-
- mondrian.calc.impl.AbstractCalc
-
- mondrian.calc.impl.AbstractIterCalc
-
- mondrian.olap.fun.SetFunDef.ExprIterCalc
-
- Enclosing class:
- SetFunDef
public static class SetFunDef.ExprIterCalc extends AbstractIterCalc
Compiled expression that evaluates one or more expressions, each of which yields a tuple or a set of tuples, and returns the result as a tuple iterator.
-
-
Field Summary
-
Fields inherited from class mondrian.calc.impl.AbstractCalc
exp, type
-
-
Constructor Summary
Constructors Constructor Description ExprIterCalc(Exp exp, Exp[] args, ExpCompiler compiler, List<ResultStyle> resultStyles)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TupleIterable
evaluateIterable(Evaluator evaluator)
Evaluates an expression to yield an Iterable of members or tuples.IterCalc[]
getCalcs()
Returns this expression's child expressions.-
Methods inherited from class mondrian.calc.impl.AbstractIterCalc
evaluate, getResultStyle, getType, toString
-
Methods inherited from class mondrian.calc.impl.AbstractCalc
accept, anyDepends, anyDependsButFirst, butDepends, collectArguments, dependsOn, getArguments, getName, isWrapperFor, simplifyEvaluator, unwrap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface mondrian.calc.Calc
accept, dependsOn, isWrapperFor, unwrap
-
-
-
-
Constructor Detail
-
ExprIterCalc
public ExprIterCalc(Exp exp, Exp[] args, ExpCompiler compiler, List<ResultStyle> resultStyles)
-
-
Method Detail
-
getCalcs
public IterCalc[] getCalcs()
Description copied from class:AbstractCalc
Returns this expression's child expressions.- Overrides:
getCalcs
in classAbstractCalc
-
evaluateIterable
public TupleIterable evaluateIterable(Evaluator evaluator)
Description copied from interface:IterCalc
Evaluates an expression to yield an Iterable of members or tuples.The Iterable is immutable.
- Parameters:
evaluator
- Evaluation context- Returns:
- An Iterable of members or tuples, never null.
-
-