mondrian.olap.fun
Class SetFunDef.TupleSetListCalc
java.lang.Object
mondrian.calc.impl.AbstractCalc
mondrian.calc.impl.AbstractTupleListCalc
mondrian.olap.fun.SetFunDef.TupleSetListCalc
- All Implemented Interfaces:
- Calc, ListCalc, TupleListCalc
- Enclosing class:
- SetFunDef
public static class SetFunDef.TupleSetListCalc
- extends AbstractTupleListCalc
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.
Analogous to SetFunDef.MemberSetListCalc
,
except processes tuples instead of members.
Also, does not process high-cardinality dimensions specially.
SetFunDef.TupleSetListCalc
public SetFunDef.TupleSetListCalc(Exp exp,
Exp[] args,
ExpCompiler compiler,
List<ResultStyle> resultStyles)
getCalcs
public Calc[] getCalcs()
- Description copied from class:
AbstractCalc
- Returns this expression's child expressions.
- Overrides:
getCalcs
in class AbstractCalc
evaluateTupleList
public List<Member[]> evaluateTupleList(Evaluator evaluator)
- Description copied from interface:
TupleListCalc
- Evaluates an expression to yield a list of tuples.
Each tuple is represented by an array of members.
The list is immutable if Calc.getResultStyle()
yields
ResultStyle.MUTABLE_LIST
. Otherwise,
the caller must not modify the list.
- Parameters:
evaluator
- Evaluation context
- Returns:
- A list of tuples, never null.