mondrian.olap.fun
Class SetFunDef.ExprIterCalc

java.lang.Object
  extended by mondrian.calc.impl.AbstractCalc
      extended by mondrian.calc.impl.AbstractIterCalc
          extended by mondrian.olap.fun.SetFunDef.ExprIterCalc
All Implemented Interfaces:
Calc, IterCalc
Enclosing class:
SetFunDef

public static class SetFunDef.ExprIterCalc
extends AbstractIterCalc

Compiled expression that evaluates one or more expressions, each of which yields a tuple or a set of tuples, and returns the result as a tuple iterator.


Field Summary
 
Fields inherited from class mondrian.calc.impl.AbstractCalc
exp, type
 
Constructor Summary
SetFunDef.ExprIterCalc(Exp exp, Exp[] args, ExpCompiler compiler, List<ResultStyle> resultStyles)
           
 
Method Summary
 TupleIterable evaluateIterable(Evaluator evaluator)
          Evaluates an expression to yield an Iterable of members or tuples.
 IterCalc[] getCalcs()
          Returns this expression's child expressions.
 
Methods inherited from class mondrian.calc.impl.AbstractIterCalc
evaluate, getResultStyle, getType, toString
 
Methods inherited from class mondrian.calc.impl.AbstractCalc
accept, anyDepends, anyDependsButFirst, butDepends, collectArguments, dependsOn, getArguments, getName, isWrapperFor, simplifyEvaluator, unwrap
 
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, isWrapperFor, unwrap
 

Constructor Detail

SetFunDef.ExprIterCalc

public SetFunDef.ExprIterCalc(Exp exp,
                              Exp[] args,
                              ExpCompiler compiler,
                              List<ResultStyle> resultStyles)
Method Detail

getCalcs

public IterCalc[] getCalcs()
Description copied from class: AbstractCalc
Returns this expression's child expressions.

Overrides:
getCalcs in class AbstractCalc

evaluateIterable

public TupleIterable evaluateIterable(Evaluator evaluator)
Description copied from interface: IterCalc
Evaluates an expression to yield an Iterable of members or tuples.

The Iterable is immutable.

Parameters:
evaluator - Evaluation context
Returns:
An Iterable of members or tuples, never null.

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