|
|||||||||
| 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 expression
protected GenericIterCalc(Exp exp,
Calc[] calcs)
exp - Source expressioncalcs - Child compiled expressions| Method Detail |
|---|
public SetType getType()
Calc
getType in interface CalcgetType in interface MemberIterCalcgetType in interface TupleIterCalcgetType in class AbstractCalcpublic java.util.List evaluateList(Evaluator evaluator)
ListCalcThe list is immutable if Calc.getResultStyle() yields
ResultStyle.MUTABLE_LIST. Otherwise,
the caller must not modify the list.
evaluateList in interface ListCalcevaluator - Evaluation context
public final java.util.List<Member> evaluateMemberList(Evaluator evaluator)
MemberListCalcThe list is immutable if Calc.getResultStyle() yields
ResultStyle.MUTABLE_LIST. Otherwise,
the caller must not modify the list.
evaluateMemberList in interface MemberListCalcevaluator - Evaluation context
public final java.util.List<Member[]> evaluateTupleList(Evaluator evaluator)
TupleListCalcEach 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 TupleListCalcevaluator - Evaluation context
public java.lang.Iterable evaluateIterable(Evaluator evaluator)
IterCalcThe Iterable is immutable.
evaluateIterable in interface IterCalcevaluator - Evaluation context
public java.lang.Iterable<Member> evaluateMemberIterable(Evaluator evaluator)
MemberIterCalc
evaluateMemberIterable in interface MemberIterCalcevaluator - Evaluation context
public java.lang.Iterable<Member[]> evaluateTupleIterable(Evaluator evaluator)
TupleIterCalc
evaluateTupleIterable in interface TupleIterCalcevaluator - Evaluation context
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||