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

All Known Implementing Classes:
DummyPrefetchBuffer, 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)
           
 boolean isClosed()
           
 void setTupleCollection(TupleCollection tc)
          Asscoiates 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
Asscoiates 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

close

public void close()
           throws MedorException
Throws:
MedorException

isClosed

public boolean isClosed()

getTuple

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