mondrian.rolap
Class RolapNamedSetEvaluator

java.lang.Object
  extended by 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
RolapNamedSetEvaluator(RolapResult.RolapResultEvaluatorRoot rrer, NamedSet namedSet)
          Creates a RolapNamedSetEvaluator.
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RolapNamedSetEvaluator

public RolapNamedSetEvaluator(RolapResult.RolapResultEvaluatorRoot rrer,
                              NamedSet namedSet)
Creates a RolapNamedSetEvaluator.

Parameters:
rrer - Evaluation root context
namedSet - Named set
Method Detail

evaluateTupleIterable

public TupleIterable evaluateTupleIterable()
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() and Evaluator.NamedSetEvaluator.currentTuple().

Specified by:
evaluateTupleIterable in interface Evaluator.NamedSetEvaluator
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 interface Evaluator.NamedSetEvaluator
Returns:
Ordinal of the current member or tuple in the named set

onPosition

public void onPosition(int index)
Specified by:
onPosition in interface TupleList.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 interface Evaluator.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 interface Evaluator.NamedSetEvaluator
Returns:
Current member

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