org.objectweb.medor.eval.prefetch.api

Interface PrefetchBuffer

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(Object index)
boolean
isClosed()
void
setTupleCollection(TupleCollection tc)
Asscoiates a tuple collection to this PrefetchBuffer.

Method Details

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.


close

public void close()
            throws MedorException


getTuple

public Tuple getTuple(Object index)
            throws MedorException


isClosed

public boolean isClosed()


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.