public class EmptyDocumentList extends java.lang.Object implements DocumentList
Constructor and Description |
---|
EmptyDocumentList(java.lang.String checkpoint)
Constructs an empty document list with the given checkpoint.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
checkpoint()
Provides a checkpoint that can be used to control traversal.
|
Document |
nextDocument()
Returns the next
Document in this document list, if there is one. |
public EmptyDocumentList(java.lang.String checkpoint)
checkpoint
- the checkpoint for this document listpublic Document nextDocument()
Document
in this document list, if there is one.nextDocument
in interface DocumentList
null
, always, to indicate that this document list
contains no documents.public java.lang.String checkpoint()
TraversalManager.resumeTraversal(String)
.
If null
is returned, then no new checkpoint will be saved,
and the existing checkpoint will be supplied to
TraversalManager.startTraversal()
or
TraversalManager.resumeTraversal(String)
,
in effect, restarting the traversal from the last saved checkpoint.
checkpoint
in interface DocumentList