|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface for ObjectPagers. An object pager is a repository for Objects. The objects are put in the repository and and ID number is returned. The objects may subsequently be requested back from the repository.
This allows things like the TermVector class to transparently page out vectors to the disk so that you can have a larger number appear to be in memory at one time.
Method Summary | |
void |
delete(java.lang.Object id)
remove object associated with id from the repository |
java.util.Iterator |
iterator()
iterate over the ids in the pager |
java.lang.Object |
retrieve(java.lang.Object id)
Retrieve and object based on it's id |
java.lang.Object |
store(java.lang.Object o)
Store an object, and get back an id for the object |
void |
update(java.lang.Object o,
java.lang.Object id)
Associate object o with id |
Method Detail |
public java.lang.Object store(java.lang.Object o)
public java.lang.Object retrieve(java.lang.Object id)
public void update(java.lang.Object o, java.lang.Object id)
public void delete(java.lang.Object id)
public java.util.Iterator iterator()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |