|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmondrian.calc.impl.AbstractCalc
mondrian.calc.impl.GenericIterCalc
public abstract class GenericIterCalc
Adapter which computes a set expression and converts it to any list or iterable type.
Field Summary |
---|
Fields inherited from class mondrian.calc.impl.AbstractCalc |
---|
exp, type |
Constructor Summary | |
---|---|
protected |
GenericIterCalc(Exp exp)
Creates a GenericIterCalc without specifying child calculated expressions. |
protected |
GenericIterCalc(Exp exp,
Calc[] calcs)
Creates an GenericIterCalc. |
Method Summary | |
---|---|
java.lang.Iterable |
evaluateIterable(Evaluator evaluator)
Evaluates an expression to yield an Iterable of members or tuples. |
java.util.List |
evaluateList(Evaluator evaluator)
Evaluates an expression to yield a list of members or tuples. |
java.lang.Iterable<Member> |
evaluateMemberIterable(Evaluator evaluator)
Evaluates an expression to yield a member iterator. |
java.util.List<Member> |
evaluateMemberList(Evaluator evaluator)
Evaluates an expression to yield a list of members. |
java.lang.Iterable<Member[]> |
evaluateTupleIterable(Evaluator evaluator)
Evaluates an expression to yield an iterator over tuples (arrays of members). |
java.util.List<Member[]> |
evaluateTupleList(Evaluator evaluator)
Evaluates an expression to yield a list of tuples. |
SetType |
getType()
Returns the type of this expression. |
Methods inherited from class mondrian.calc.impl.AbstractCalc |
---|
accept, anyDepends, anyDependsButFirst, butDepends, dependsOn, getArguments, getCalcs, getName, getResultStyle, simplifyEvaluator |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface mondrian.calc.Calc |
---|
accept, dependsOn, evaluate, getResultStyle |
Constructor Detail |
---|
protected GenericIterCalc(Exp exp)
Subclass should override AbstractCalc.getCalcs()
.
exp
- Source expressionprotected GenericIterCalc(Exp exp, Calc[] calcs)
exp
- Source expressioncalcs
- Child compiled expressionsMethod Detail |
---|
public SetType getType()
Calc
getType
in interface Calc
getType
in interface MemberIterCalc
getType
in interface TupleIterCalc
getType
in class AbstractCalc
public java.util.List evaluateList(Evaluator evaluator)
ListCalc
The list is immutable if Calc.getResultStyle()
yields
ResultStyle.MUTABLE_LIST
. Otherwise,
the caller must not modify the list.
evaluateList
in interface ListCalc
evaluator
- Evaluation context
public final java.util.List<Member> evaluateMemberList(Evaluator evaluator)
MemberListCalc
The list is immutable if Calc.getResultStyle()
yields
ResultStyle.MUTABLE_LIST
. Otherwise,
the caller must not modify the list.
evaluateMemberList
in interface MemberListCalc
evaluator
- Evaluation context
public final java.util.List<Member[]> evaluateTupleList(Evaluator evaluator)
TupleListCalc
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.
evaluateTupleList
in interface TupleListCalc
evaluator
- Evaluation context
public java.lang.Iterable evaluateIterable(Evaluator evaluator)
IterCalc
The Iterable is immutable.
evaluateIterable
in interface IterCalc
evaluator
- Evaluation context
public java.lang.Iterable<Member> evaluateMemberIterable(Evaluator evaluator)
MemberIterCalc
evaluateMemberIterable
in interface MemberIterCalc
evaluator
- Evaluation context
public java.lang.Iterable<Member[]> evaluateTupleIterable(Evaluator evaluator)
TupleIterCalc
evaluateTupleIterable
in interface TupleIterCalc
evaluator
- Evaluation context
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |