org.objectweb.medor.eval.prefetch.api
Interface PrefetchBuffer

All Known Subinterfaces:
IntermediaryPrefetchBuffer
All Known Implementing Classes:
DummyPrefetchBuffer, IntermediaryPrefetchBufferImpl, PrefetchBufferImpl

public interface PrefetchBuffer

Registers the prefetched tuples within an indexed buffer for further access through the tuple identifier used for indexing. This registering occurs while tuple collection they belong to is traversed by the application.

Author:
P. Dechamboux

Method Summary
 void addPrefetchTuple()
          Adds to this cache a prefetched tuple that is the one which currently traversed within the associated tuple collection.
 void close()
           
 Tuple getTuple(java.lang.Object index)
           
 TupleCollection getTupleCollection(java.lang.Object index)
          Returns the tuple collection positionned on the tuple identified by index.
 boolean isClosed()
           
 void setTupleCollection(TupleCollection tc)
          Associates a tuple collection to this PrefetchBuffer.
 

Method Detail

addPrefetchTuple

public void addPrefetchTuple()
                      throws MedorException
Adds to this cache a prefetched tuple that is the one which currently traversed within the associated tuple collection.

Throws:
MedorException

setTupleCollection

public void setTupleCollection(TupleCollection tc)
                        throws MedorException
Associates a tuple collection to this PrefetchBuffer. It should contain the tuples that will be registered with the prefetch structure.

Parameters:
tc - The associated tuple collection.
Throws:
MedorException

getTupleCollection

public TupleCollection getTupleCollection(java.lang.Object index)
                                   throws MedorException
Returns the tuple collection positionned on the tuple identified by index.

Throws:
MedorException

close

public void close()
           throws MedorException
Throws:
MedorException

isClosed

public boolean isClosed()

getTuple

public Tuple getTuple(java.lang.Object index)
               throws MedorException
Throws:
MedorException