|
|||||||||
| 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 | |
|---|---|
TupleIterable |
evaluateIterable(Evaluator evaluator)
Evaluates an expression to yield an Iterable of members or tuples. |
TupleList |
evaluateList(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, collectArguments, dependsOn, getArguments, getCalcs, getName, getResultStyle, isWrapperFor, simplifyEvaluator, unwrap |
| 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, isWrapperFor, unwrap |
| 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 class AbstractCalcpublic TupleList 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 TupleIterable evaluateIterable(Evaluator evaluator)
IterCalcThe Iterable is immutable.
evaluateIterable in interface IterCalcevaluator - Evaluation context
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||