|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--iglu.ir.PagedDocumentSet
A document set backed by an FileObjectPager. This supports having very large document sets transparently loaded. By default it uses the RAMObjectPager, eliminating any advantages over the DefaultDocumentSet. Supply your own FileObjectPager.
| Field Summary | |
(package private) PagedLinkedList |
docs
The documents |
(package private) DocumentFilter[] |
filters
The filters |
(package private) PagedLinkedList |
metaData
The meta data |
| Constructor Summary | |
PagedDocumentSet()
Create a new PagedDocumentSet using the RAMObjectPager. |
|
PagedDocumentSet(ObjectPager pager)
Create a new PagedDocumentSet using the given pager. |
|
| Method Summary | |
int |
addDoc(Document d)
Add a document with no meta data |
int |
addDoc(Document d,
java.lang.Object metaData)
Add a document and associated meta data |
Document |
getDoc(int docNum)
Retrieve the indicated document |
java.lang.Object |
getDocMeta(int docNum)
Get the meta data for the indicated document |
java.util.Iterator |
iterator()
Get an iterator over the document set |
void |
setFilters(DocumentFilter[] filters)
A set of filters which getDoc must apply when returning documents |
void |
setPager(ObjectPager pager)
Start using the given pager. |
int |
size()
Return the number of documents in this document set |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
PagedLinkedList docs
PagedLinkedList metaData
DocumentFilter[] filters
| Constructor Detail |
public PagedDocumentSet()
public PagedDocumentSet(ObjectPager pager)
| Method Detail |
public void setFilters(DocumentFilter[] filters)
DocumentSet
setFilters in interface DocumentSetpublic void setPager(ObjectPager pager)
public int addDoc(Document d)
addDoc in interface EditableDocumentSet
public int addDoc(Document d,
java.lang.Object metaData)
addDoc in interface EditableDocumentSetpublic Document getDoc(int docNum)
getDoc in interface DocumentSetpublic java.lang.Object getDocMeta(int docNum)
getDocMeta in interface DocumentSetpublic java.util.Iterator iterator()
iterator in interface DocumentSetpublic int size()
size in interface DocumentSet
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||