|
|||||||||||
| 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 CollectionCachepublic void setCapacity(int capacity)
public Tuple getTuple(int index)
throws MedorException
getTuple in interface CollectionCacheindex - is the rank of the Object
MedorException
public boolean putTuple(int index,
Tuple t)
throws MedorException
putTuple in interface CollectionCacheMedorExceptionpublic void initialize()
CollectionCache
initialize in interface CollectionCachepublic java.util.Iterator tupleIndexIterator()
CollectionCache
tupleIndexIterator in interface CollectionCachepublic void destroy()
CollectionCache
destroy in interface CollectionCachepublic boolean contains(int index)
CollectionCache
contains in interface CollectionCachepublic boolean isCanInsert()
CollectionCache
isCanInsert in interface CollectionCachepublic 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 | ||||||||||