Interface DocumentIterator
-
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
LabelAwareDocumentIterator
- All Known Implementing Classes:
FileDocumentIterator
public interface DocumentIterator extends Serializable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
hasNext()
Whether there are anymore documents in the iteratorInputStream
nextDocument()
Get the next documentvoid
reset()
Reset the iterator to the beginning
-
-
-
Method Detail
-
nextDocument
InputStream nextDocument()
Get the next document- Returns:
- the input stream for the next document
-
hasNext
boolean hasNext()
Whether there are anymore documents in the iterator- Returns:
- whether there are anymore documents in the iterator
-
reset
void reset()
Reset the iterator to the beginning
-
-