mondrian.olap.fun
Class SetFunDef.TupleSetListCalc

java.lang.Object
  extended by mondrian.calc.impl.AbstractCalc
      extended by mondrian.calc.impl.AbstractTupleListCalc
          extended by mondrian.olap.fun.SetFunDef.TupleSetListCalc
All Implemented Interfaces:
Calc, ListCalc, TupleListCalc
Enclosing class:
SetFunDef

public static class SetFunDef.TupleSetListCalc
extends AbstractTupleListCalc

Compiled expression to implement the MDX set function, { ... }, applied to a set of tuples, as a list.

The set function can contain expressions which yield sets together with expressions which yield individual tuples, provided that they all have the same type. It automatically removes null or partially-null tuples from the list.

Analogous to SetFunDef.MemberSetListCalc, except processes tuples instead of members.

Also, does not process high-cardinality dimensions specially.


Field Summary
 
Fields inherited from class mondrian.calc.impl.AbstractCalc
exp, type
 
Constructor Summary
SetFunDef.TupleSetListCalc(Exp exp, Exp[] args, ExpCompiler compiler, java.util.List<ResultStyle> resultStyles)
           
 
Method Summary
 java.util.List<Member[]> evaluateTupleList(Evaluator evaluator)
          Evaluates an expression to yield a list of tuples.
 Calc[] getCalcs()
          Returns this expression's child expressions.
 
Methods inherited from class mondrian.calc.impl.AbstractTupleListCalc
evaluate, evaluateList, getResultStyle, getType, toString
 
Methods inherited from class mondrian.calc.impl.AbstractCalc
accept, anyDepends, anyDependsButFirst, butDepends, dependsOn, getArguments, 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.Calc
accept, dependsOn
 

Constructor Detail

SetFunDef.TupleSetListCalc

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

getCalcs

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

Overrides:
getCalcs in class AbstractCalc

evaluateTupleList

public java.util.List<Member[]> evaluateTupleList(Evaluator evaluator)
Description copied from interface: TupleListCalc
Evaluates an expression to yield a list of tuples.

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.

Parameters:
evaluator - Evaluation context
Returns:
A list of tuples, never null.

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