mondrian.calc.impl
Class IterableTupleListCalc
java.lang.Object
mondrian.calc.impl.AbstractCalc
mondrian.calc.impl.AbstractTupleListCalc
mondrian.calc.impl.IterableTupleListCalc
- All Implemented Interfaces:
- Calc, ListCalc, TupleListCalc
public class IterableTupleListCalc
- extends AbstractTupleListCalc
Adapter that converts a IterCalc
to a
ListCalc
.
- Since:
- Oct 23, 2008
- Version:
- $Id: //open/mondrian/src/main/mondrian/calc/impl/IterableTupleListCalc.java#3 $
- Author:
- jhyde
IterableTupleListCalc
public IterableTupleListCalc(TupleIterCalc iterCalc)
- Creates an IterableListCalc.
- Parameters:
iterCalc
- Calculation that returns an iterable.
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.