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

All Superinterfaces:
PrefetchBuffer
All Known Implementing Classes:
IntermediaryPrefetchBufferImpl

public interface IntermediaryPrefetchBuffer
extends PrefetchBuffer

It acts as an intermediary prefetch buffer. It has a delegate prefetch buffer and a translation table between the Tuple of the delegate prefetch buffer and its own Tuple.

Author:
Y.Bersihand

Method Summary
 int[] getAssociationTable()
          Gets the association table.
 PrefetchBuffer getDelegatePrefetchBuffer()
          Gets the delegate prefetch buffer
 void setAssociationTable(int[] indexes)
          Sets the association table between the tuple of the delegate prefetch buffer and its tuple.
 void setDelegatePrefetchBuffer(PrefetchBuffer pb)
          Sets the delegate prefetch buffer
 
Methods inherited from interface org.objectweb.medor.eval.prefetch.api.PrefetchBuffer
addPrefetchTuple, close, getTuple, getTupleCollection, isClosed, setTupleCollection
 

Method Detail

setDelegatePrefetchBuffer

public void setDelegatePrefetchBuffer(PrefetchBuffer pb)
Sets the delegate prefetch buffer


getDelegatePrefetchBuffer

public PrefetchBuffer getDelegatePrefetchBuffer()
Gets the delegate prefetch buffer

Returns:

setAssociationTable

public void setAssociationTable(int[] indexes)
Sets the association table between the tuple of the delegate prefetch buffer and its tuple. Example: Tuple of the delegate pb : [f1, f2, f3, f4] association table : [0,3] because to build its tuple, only the fields f1 and f4 are needed.

Parameters:
indexes -

getAssociationTable

public int[] getAssociationTable()
Gets the association table.