public class CollectionDocumentList extends Object implements Collection
| Constructor and Description |
|---|
CollectionDocumentList(Document[] _docs,
String _docidPropertyName) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
endOfCollection()
Returns true if the end of the collection has been reached
|
String |
getDocid() |
Document |
getDocument()
Get the document object representing the current document.
|
boolean |
nextDocument()
Move the collection to the start of the next document.
|
void |
reset()
Resets the Collection iterator to the start of the collection.
|
public boolean endOfCollection()
CollectionendOfCollection in interface Collectionpublic String getDocid()
public Document getDocument()
CollectiongetDocument in interface Collectionpublic boolean nextDocument()
CollectionnextDocument in interface Collectionpublic void reset()
Collectionreset in interface Collectionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionTerrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow