|
|||||||||
| 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.AbstractTupleIterCalc
public abstract class AbstractTupleIterCalc
Abstract implementation of the ListCalc interface
for expressions that return a list of members but never a list of tuples.
The derived class must
implement the TupleIterCalc.evaluateTupleIterable(mondrian.olap.Evaluator) method,
and the evaluate(mondrian.olap.Evaluator) method will call it.
AbstractListCalc| Field Summary |
|---|
| Fields inherited from class mondrian.calc.impl.AbstractCalc |
|---|
exp, type |
| Constructor Summary | |
|---|---|
protected |
AbstractTupleIterCalc(Exp exp,
Calc[] calcs)
Creates an abstract implementation of a compiled expression which returns a list. |
| Method Summary | |
|---|---|
java.lang.Object |
evaluate(Evaluator evaluator)
Evaluates this expression. |
java.lang.Iterable<Member[]> |
evaluateIterable(Evaluator evaluator)
Evaluates an expression to yield an Iterable of members or tuples. |
ResultStyle |
getResultStyle()
Returns style in which the result of evaluating this expression is returned. |
SetType |
getType()
Returns the type of this expression. |
java.lang.String |
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.TupleIterCalc |
|---|
evaluateTupleIterable |
| Methods inherited from interface mondrian.calc.Calc |
|---|
accept, dependsOn |
| Constructor Detail |
|---|
protected AbstractTupleIterCalc(Exp exp,
Calc[] calcs)
exp - Expression which was compiledcalcs - List of child compiled expressions (for dependency
analysis)| Method Detail |
|---|
public SetType getType()
Calc
getType in interface CalcgetType in interface TupleIterCalcgetType in class AbstractCalcpublic final java.lang.Object evaluate(Evaluator evaluator)
Calc
evaluate in interface Calcevaluator - Provides dimensional context in which to evaluate
this expression
public ResultStyle getResultStyle()
CalcOne application of this method is for the compiler to figure out whether the compiled expression is returning a mutable list. If a mutable list is required, the compiler can create a mutable copy.
getResultStyle in interface CalcgetResultStyle in class AbstractCalcExpCompiler.compileList(mondrian.olap.Exp, boolean)public java.lang.String toString()
toString in class java.lang.Objectpublic final java.lang.Iterable<Member[]> 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 | ||||||||