anl.aida.client.doc
Class SubsetDocumentsModel
java.lang.Object
anl.aida.client.doc.AbstractDocumentsModel
anl.aida.client.doc.SubsetDocumentsModel
- All Implemented Interfaces:
- DocumentsModel
public class SubsetDocumentsModel
- extends AbstractDocumentsModel
Model class for the DocumentsView that contains some subset
of documents.
Field Summary |
private java.util.List<anl.aida.core.DocumentID> |
docs
|
Method Summary |
DocSets |
createDocumentSets(int setSize)
Creates a DocSets with each set of the specified size. |
org.apache.lucene.search.Filter |
getSearchFilter()
Gets a lucene filter that filters out documents not contained in this
subset of documents and docs whose timestamp is greater than this
models cache element timestamp. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
docs
private java.util.List<anl.aida.core.DocumentID> docs
SubsetDocumentsModel
public SubsetDocumentsModel(DocSetID id,
CacheElement element,
java.util.List<anl.aida.core.DocumentID> docs)
getSearchFilter
public org.apache.lucene.search.Filter getSearchFilter()
- Gets a lucene filter that filters out documents not contained in this
subset of documents and docs whose timestamp is greater than this
models cache element timestamp.
- Returns:
- a lucene filter that filters out documents not contained in this
subset of documents and docs whose timestamp is greater than this
models cache element timestamp.
createDocumentSets
public DocSets createDocumentSets(int setSize)
- Creates a DocSets with each set of the specified size.
- Parameters:
setSize
- the set size.
- Returns:
- the created DocSets.