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()
Collection
endOfCollection
in interface Collection
public String getDocid()
public Document getDocument()
Collection
getDocument
in interface Collection
public boolean nextDocument()
Collection
nextDocument
in interface Collection
public void reset()
Collection
reset
in interface Collection
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow