org.objectweb.medor.eval.lib

Class ProjectEvaluatedTC

Implemented Interfaces:
BinaryEvaluatedTC, PrefetchBufferHolder, TupleCollection

public class ProjectEvaluatedTC
extends BasicBinaryEvalutedTC
implements BinaryEvaluatedTC, PrefetchBufferHolder

A project Operation QueryNode is performed by this TupleCollection. This operation is not costs and doeas not uses buffers.

Field Summary

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

closed, debug, log

Constructor Summary

ProjectEvaluatedTC(QueryNode query, NodeEvaluator subNodeEvaluator, ParameterOperand[] parameters, PrefetchBuffer pb)

Method Summary

int
card()
void
close()
void
first()
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)
void
invalidatePrefetchBuffer()
boolean
isEmpty()
boolean
isLast()
boolean
next()
boolean
row(int numTuple)

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

close

Constructor Details

ProjectEvaluatedTC

public ProjectEvaluatedTC(QueryNode query,
                          NodeEvaluator subNodeEvaluator,
                          ParameterOperand[] parameters,
                          PrefetchBuffer pb)
            throws MedorException

Method Details

card

public int card()
            throws MedorException


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


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


invalidatePrefetchBuffer

public void invalidatePrefetchBuffer()
            throws MedorException
Specified by:
invalidatePrefetchBuffer in interface PrefetchBufferHolder


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