|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents a cache for TupleCollection objets.
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 tupleIndex)
|
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 indexTuple,
Tuple t)
|
void |
setCanInsert(boolean canInsert)
This method allow stop or no inserting objetcs in the cache. |
java.util.Iterator |
tupleIndexIterator()
Returns an iterator over the indexes of the Objects which are present in the cache. |
Method Detail |
public boolean isCanInsert()
public void setCanInsert(boolean canInsert)
public Tuple getTuple(int tupleIndex) throws MedorException
tupleIndex
- is the rank of the Object
MedorException
public boolean putTuple(int indexTuple, Tuple t) throws MedorException
MedorException
public boolean contains(int index)
public long getCapacity()
public void initialize()
public java.util.Iterator tupleIndexIterator()
public void destroy()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |