org.objectweb.medor.eval.lib

Class NestEvaluatedTC

Implemented Interfaces:
BinaryEvaluatedTC, TupleCollection

public class NestEvaluatedTC
extends BasicBinaryEvalutedTC
implements BinaryEvaluatedTC

This class represent is TupleCollection Result of the Nest Operation. for each GroupBy fields, a SelectProject Operation is evaluated. The result of this Operation is the NestedField TupleCollection. To select the next Group, a collection containing indexes of all tuples already grouped.

Field Summary

Fields inherited from class org.objectweb.medor.eval.lib.BasicBinaryEvalutedTC

closed, debug, log

Constructor Summary

NestEvaluatedTC(NestQueryNode query, NodeEvaluator subNodeEvaluator, ParameterOperand[] parameters, EvaluationMetaData evaluationMetaData)

Method Summary

void
close()
void
first()
TupleCollection
getGroupByTupleCollection()
int
getLeftTCCursor()
Get the current row of the left TupleCollection
TupleStructure
getMetaData()
int
getRightTCCursor()
Get the current row of the right TupleCollection
int
getRow()
Tuple
getTuple()
Tuple
getTuple(int numTuple)
boolean
isEmpty()
boolean
isLast()
boolean
next()
boolean
row(int numTuple)

Methods inherited from class org.objectweb.medor.eval.lib.BasicBinaryEvalutedTC

close

Constructor Details

NestEvaluatedTC

public NestEvaluatedTC(NestQueryNode query,
                       NodeEvaluator subNodeEvaluator,
                       ParameterOperand[] parameters,
                       EvaluationMetaData evaluationMetaData)
            throws MedorException

Method Details

close

public void close()
            throws MedorException
Specified by:
close in interface TupleCollection
Overrides:
close in interface BasicBinaryEvalutedTC


first

public void first()
            throws MedorException
Specified by:
first in interface TupleCollection


getGroupByTupleCollection

public TupleCollection getGroupByTupleCollection()
            throws MedorException


getLeftTCCursor

public int getLeftTCCursor()
            throws MedorException
Get the current row of the left TupleCollection
Specified by:
getLeftTCCursor in interface BinaryEvaluatedTC

Returns:
an int

Throws:
MedorException - if error in left TupleCollection


getMetaData

public TupleStructure getMetaData()
            throws MedorException
Specified by:
getMetaData in interface TupleCollection


getRightTCCursor

public int getRightTCCursor()
            throws MedorException
Get the current row of the right TupleCollection
Specified by:
getRightTCCursor in interface BinaryEvaluatedTC

Returns:
an int

Throws:
MedorException - if error in right TupleCollection


getRow

public int getRow()
            throws MedorException
Specified by:
getRow in interface TupleCollection


getTuple

public Tuple getTuple()
            throws MedorException
Specified by:
getTuple in interface TupleCollection


getTuple

public Tuple getTuple(int numTuple)
            throws MedorException
Specified by:
getTuple in interface TupleCollection


isEmpty

public boolean isEmpty()
            throws MedorException
Specified by:
isEmpty in interface TupleCollection


isLast

public boolean isLast()
            throws MedorException
Specified by:
isLast in interface TupleCollection


next

public boolean next()
            throws MedorException
Specified by:
next in interface TupleCollection


row

public boolean row(int numTuple)
            throws MedorException
Specified by:
row in interface TupleCollection