mondrian.calc.impl
Class IterableMemberListCalc

java.lang.Object
  extended by mondrian.calc.impl.AbstractCalc
      extended by mondrian.calc.impl.AbstractMemberListCalc
          extended by 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

Field Summary
 
Fields inherited from class mondrian.calc.impl.AbstractCalc
exp, type
 
Constructor Summary
IterableMemberListCalc(MemberIterCalc iterCalc)
          Creates a IterableMemberListCalc.
 
Method Summary
 java.util.List<Member> evaluateMemberList(Evaluator evaluator)
          Evaluates an expression to yield a list of members.
 
Methods inherited from class mondrian.calc.impl.AbstractMemberListCalc
evaluate, evaluateList, getResultStyle, getType, toString
 
Methods inherited from class mondrian.calc.impl.AbstractCalc
accept, anyDepends, anyDependsButFirst, butDepends, dependsOn, getArguments, getCalcs, getName, simplifyEvaluator
 
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
 

Constructor Detail

IterableMemberListCalc

public IterableMemberListCalc(MemberIterCalc iterCalc)
Creates a IterableMemberListCalc.

Parameters:
iterCalc - Calculation that returns an iterable over members.
Method Detail

evaluateMemberList

public java.util.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.

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads