org.objectweb.medor.eval.cache.lib

Class WindowCachedTupleCollection

Implemented Interfaces:
CachedTupleCollection, TupleCollection

public class WindowCachedTupleCollection
extends java.lang.Object
implements CachedTupleCollection

This class implements a basic TupleCollection wich is cached.

Constructor Summary

WindowCachedTupleCollection(TupleCollection tc, CollectionCache tupleCache)

Method Summary

void
close()
void
first()
CollectionCache
getCache()
int
getLeftTCCursor()
This method is used when nesting data.
TupleStructure
getMetaData()
int
getRightTCCursor()
This method is used when nesting data.
int
getRow()
Tuple
getTuple()
Tuple
getTuple(int row)
boolean
isEmpty()
boolean
isLast()
boolean
next()
boolean
row(int numTuple)

Constructor Details

WindowCachedTupleCollection

public WindowCachedTupleCollection(TupleCollection tc,
                                   CollectionCache tupleCache)
            throws MedorException

Method Details

close

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


first

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


getCache

public CollectionCache getCache()
Specified by:
getCache in interface CachedTupleCollection


getLeftTCCursor

public int getLeftTCCursor()
This method is used when nesting data. It must be carrefully implemented


getMetaData

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


getRightTCCursor

public int getRightTCCursor()
This method is used when nesting data. It must be carrefully implemented


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 row)
            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