Package mondrian.olap.fun
Class SetFunDef.SetListCalc
java.lang.Object
mondrian.calc.impl.AbstractCalc
mondrian.calc.impl.AbstractListCalc
mondrian.olap.fun.SetFunDef.SetListCalc
- Enclosing class:
- SetFunDef
Compiled expression to implement the MDX set function,
{ ...
}
, applied to a set of tuples, as a list.
The set function can contain expressions which yield sets together with expressions which yield individual tuples, provided that they all have the same type. It automatically removes null or partially-null tuples from the list.
Also, does not process high-cardinality dimensions specially.
-
Field Summary
Fields inherited from class mondrian.calc.impl.AbstractCalc
exp, type
-
Constructor Summary
ConstructorDescriptionSetListCalc
(Exp exp, Exp[] args, ExpCompiler compiler, List<ResultStyle> resultStyles) -
Method Summary
Modifier and TypeMethodDescriptionevaluateList
(Evaluator evaluator) Evaluates an expression to yield a list of tuples.Calc[]
getCalcs()
Returns this expression's child expressions.Methods inherited from class mondrian.calc.impl.AbstractListCalc
evaluate, evaluateIterable, 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 Details
-
SetListCalc
-
-
Method Details
-
getCalcs
Description copied from class:AbstractCalc
Returns this expression's child expressions.- Overrides:
getCalcs
in classAbstractCalc
-
evaluateList
Description copied from interface:ListCalc
Evaluates an expression to yield a list of tuples.The list is immutable if
Calc.getResultStyle()
yieldsResultStyle.MUTABLE_LIST
. Otherwise, the caller must not modify the list.- Parameters:
evaluator
- Evaluation context- Returns:
- A list of tuples, never null.
-