org.objectweb.medor.eval.lib

Class BinaryImplicitTC

Implemented Interfaces:
BinaryEvaluatedTC, TupleCollection

public class BinaryImplicitTC
extends BasicBinaryEvalutedTC
implements BinaryEvaluatedTC

This class represents TupleCollection result of filtering or joining then projecting of two sub TupleCollection.

It is typically used for performing JoinProject and Intersection Operations. The indexes of the sub TupleCollection are getted by the to methods: getRightTCCursor() and getLeftTCCursor(). The type of the evaluation used is the Iterative one.

Field Summary

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

closed, debug, log

Constructor Summary

BinaryImplicitTC(QueryNode query, NodeEvaluator leftNodeEvaluator, NodeEvaluator rightNodeEvaluator, ParameterOperand[] parameters)

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)
boolean
isEmpty()
boolean
isLast()
boolean
next()
boolean
row(int numTuple)

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

close

Constructor Details

BinaryImplicitTC

public BinaryImplicitTC(QueryNode query,
                        NodeEvaluator leftNodeEvaluator,
                        NodeEvaluator rightNodeEvaluator,
                        ParameterOperand[] parameters)
            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


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