org.objectweb.medor.eval.prefetch.lib
Class PrefetchBufferImpl

java.lang.Object
  extended byorg.objectweb.medor.eval.prefetch.lib.PrefetchBufferImpl
All Implemented Interfaces:
PrefetchBuffer

public class PrefetchBufferImpl
extends java.lang.Object
implements PrefetchBuffer

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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addPrefetchTuple

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

Specified by:
addPrefetchTuple in interface PrefetchBuffer
Throws:
MedorException

setTupleCollection

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

Specified by:
setTupleCollection in interface PrefetchBuffer
Parameters:
tc - The associated tuple collection.
Throws:
MedorException

getTuple

public Tuple getTuple(java.lang.Object index)
               throws MedorException
Specified by:
getTuple in interface PrefetchBuffer
Throws:
MedorException

getTupleCollection

public TupleCollection getTupleCollection(java.lang.Object index)
                                   throws MedorException
Description copied from interface: PrefetchBuffer
Returns the tuple collection positionned on the tuple identified by index.

Specified by:
getTupleCollection in interface PrefetchBuffer
Throws:
MedorException

close

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

isClosed

public boolean isClosed()
Specified by:
isClosed in interface PrefetchBuffer