Package mondrian.rolap
Class RolapSetEvaluator
- java.lang.Object
-
- mondrian.rolap.RolapSetEvaluator
-
- All Implemented Interfaces:
TupleList.PositionCallback
,Evaluator.SetEvaluator
class RolapSetEvaluator extends java.lang.Object implements Evaluator.SetEvaluator, TupleList.PositionCallback
Evaluation context to be able to expand a generic expression that returns a set- Since:
- September 14, 2012
- Author:
- pedro alves
-
-
Constructor Summary
Constructors Constructor Description RolapSetEvaluator(RolapResult.RolapResultEvaluatorRoot rrer, Exp exp)
Creates a RolapNamedSetEvaluator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Member
currentMember()
Returns the current member in the named set.int
currentOrdinal()
Returns the ordinal of the current member or tuple in the named set.Member[]
currentTuple()
Returns the current tuple in the named set.TupleIterable
evaluateTupleIterable()
Returns an iterator over the tuples of the named set.void
onPosition(int index)
-
-
-
Constructor Detail
-
RolapSetEvaluator
public RolapSetEvaluator(RolapResult.RolapResultEvaluatorRoot rrer, Exp exp)
Creates a RolapNamedSetEvaluator.- Parameters:
rrer
- Evaluation root contextexp
- Expression
-
-
Method Detail
-
evaluateTupleIterable
public TupleIterable evaluateTupleIterable()
Description copied from interface:Evaluator.SetEvaluator
Returns an iterator over the tuples of the named set. Applicable if the named set is a set of tuples.The iterator from this iterable maintains the current ordinal property required for the methods
Evaluator.SetEvaluator.currentOrdinal()
andEvaluator.SetEvaluator.currentTuple()
.- Specified by:
evaluateTupleIterable
in interfaceEvaluator.SetEvaluator
- Returns:
- Iterable over the tuples of the set
-
currentOrdinal
public int currentOrdinal()
Description copied from interface:Evaluator.SetEvaluator
Returns the ordinal of the current member or tuple in the named set.- Specified by:
currentOrdinal
in interfaceEvaluator.SetEvaluator
- Returns:
- Ordinal of the current member or tuple in the named set
-
onPosition
public void onPosition(int index)
- Specified by:
onPosition
in interfaceTupleList.PositionCallback
-
currentTuple
public Member[] currentTuple()
Description copied from interface:Evaluator.SetEvaluator
Returns the current tuple in the named set.Applicable if the named set is a set of tuples.
- Specified by:
currentTuple
in interfaceEvaluator.SetEvaluator
- Returns:
- Current tuple.
-
currentMember
public Member currentMember()
Description copied from interface:Evaluator.SetEvaluator
Returns the current member in the named set.Applicable if the named set is a set of members.
- Specified by:
currentMember
in interfaceEvaluator.SetEvaluator
- Returns:
- Current member
-
-