iglu.util
Interface ObjectPager

All Known Implementing Classes:
FileObjectPager, RAMObjectPager

public interface ObjectPager

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

store

public java.lang.Object store(java.lang.Object o)
Store an object, and get back an id for the object


retrieve

public java.lang.Object retrieve(java.lang.Object id)
Retrieve and object based on it's id


update

public void update(java.lang.Object o,
                   java.lang.Object id)
Associate object o with id


delete

public void delete(java.lang.Object id)
remove object associated with id from the repository


iterator

public java.util.Iterator iterator()
iterate over the ids in the pager