|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.medor.eval.cache.lib.TupleCache
Constructor Summary | |
TupleCache(long size)
|
Method Summary | |
boolean |
contains(int index)
Does the cache contains Object ranked int of the associated Objects to be cached. |
void |
destroy()
Reinitializes the internal structure of the cache. |
long |
getCapacity()
|
Tuple |
getTuple(int index)
|
void |
initialize()
Creates the internal structure of the cache. |
boolean |
isCanInsert()
Are insertions possible (is policy dependent: example may require to free the cache before insertion). |
boolean |
putTuple(int index,
Tuple t)
|
void |
setCanInsert(boolean canInsert)
This method allow stop or no inserting objetcs in the cache. |
void |
setCapacity(int capacity)
|
java.util.Iterator |
tupleIndexIterator()
Returns an iterator over the indexes of the Objects which are present in the cache. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TupleCache(long size)
Method Detail |
public long getCapacity()
getCapacity
in interface CollectionCache
public void setCapacity(int capacity)
public Tuple getTuple(int index) throws MedorException
getTuple
in interface CollectionCache
index
- is the rank of the Object
MedorException
public boolean putTuple(int index, Tuple t) throws MedorException
putTuple
in interface CollectionCache
MedorException
public void initialize()
CollectionCache
initialize
in interface CollectionCache
public java.util.Iterator tupleIndexIterator()
CollectionCache
tupleIndexIterator
in interface CollectionCache
public void destroy()
CollectionCache
destroy
in interface CollectionCache
public boolean contains(int index)
CollectionCache
contains
in interface CollectionCache
public boolean isCanInsert()
CollectionCache
isCanInsert
in interface CollectionCache
public void setCanInsert(boolean canInsert)
CollectionCache
setCanInsert
in interface CollectionCache
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |