Package mondrian.rolap
Class RolapNamedSetEvaluator
- java.lang.Object
-
- mondrian.rolap.RolapNamedSetEvaluator
-
- All Implemented Interfaces:
TupleList.PositionCallback
,Evaluator.NamedSetEvaluator
class RolapNamedSetEvaluator extends Object implements Evaluator.NamedSetEvaluator, TupleList.PositionCallback
Evaluation context for a particular named set.- Since:
- November 11, 2008
- Author:
- jhyde
-
-
Constructor Summary
Constructors Constructor Description RolapNamedSetEvaluator(RolapResult.RolapResultEvaluatorRoot rrer, NamedSet namedSet)
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(Evaluator evaluator)
Returns an iterator over the tuples of the named set.void
onPosition(int index)
-
-
-
Constructor Detail
-
RolapNamedSetEvaluator
public RolapNamedSetEvaluator(RolapResult.RolapResultEvaluatorRoot rrer, NamedSet namedSet)
Creates a RolapNamedSetEvaluator.- Parameters:
rrer
- Evaluation root contextnamedSet
- Named set
-
-
Method Detail
-
evaluateTupleIterable
public TupleIterable evaluateTupleIterable(Evaluator evaluator)
Description copied from interface:Evaluator.NamedSetEvaluator
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.NamedSetEvaluator.currentOrdinal()
andEvaluator.NamedSetEvaluator.currentTuple()
.- Specified by:
evaluateTupleIterable
in interfaceEvaluator.NamedSetEvaluator
- Parameters:
evaluator
- Evaluator for current context- Returns:
- Iterable over the tuples of the set
-
currentOrdinal
public int currentOrdinal()
Description copied from interface:Evaluator.NamedSetEvaluator
Returns the ordinal of the current member or tuple in the named set.- Specified by:
currentOrdinal
in interfaceEvaluator.NamedSetEvaluator
- 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.NamedSetEvaluator
Returns the current tuple in the named set.Applicable if the named set is a set of tuples.
- Specified by:
currentTuple
in interfaceEvaluator.NamedSetEvaluator
- Returns:
- Current tuple.
-
currentMember
public Member currentMember()
Description copied from interface:Evaluator.NamedSetEvaluator
Returns the current member in the named set.Applicable if the named set is a set of members.
- Specified by:
currentMember
in interfaceEvaluator.NamedSetEvaluator
- Returns:
- Current member
-
-