mondrian.calc.impl
Class IterableMemberListCalc
java.lang.Object
mondrian.calc.impl.AbstractCalc
mondrian.calc.impl.AbstractMemberListCalc
mondrian.calc.impl.IterableMemberListCalc
- All Implemented Interfaces:
- Calc, ListCalc, MemberListCalc
public class IterableMemberListCalc
- extends AbstractMemberListCalc
Adapter that converts a MemberIterCalc
to a
MemberListCalc
.
- Since:
- Oct 23, 2008
- Version:
- $Id: //open/mondrian/src/main/mondrian/calc/impl/IterableMemberListCalc.java#3 $
- Author:
- jhyde
IterableMemberListCalc
public IterableMemberListCalc(MemberIterCalc iterCalc)
- Creates a IterableMemberListCalc.
- Parameters:
iterCalc
- Calculation that returns an iterable over members.
evaluateMemberList
public List<Member> evaluateMemberList(Evaluator evaluator)
- Description copied from interface:
MemberListCalc
- Evaluates an expression to yield a list 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 members, never null.