public class DocumentIteratorConverter extends java.lang.Object implements LabelAwareIterator
| Modifier and Type | Field and Description |
|---|---|
protected DocumentIterator |
backendIterator |
protected LabelsSource |
generator |
| Constructor and Description |
|---|
DocumentIteratorConverter(DocumentIterator iterator,
LabelsSource generator) |
DocumentIteratorConverter(LabelAwareDocumentIterator iterator) |
| Modifier and Type | Method and Description |
|---|---|
LabelsSource |
getLabelsSource() |
boolean |
hasNext() |
boolean |
hasNextDocument() |
LabelledDocument |
next() |
LabelledDocument |
nextDocument() |
protected java.lang.String |
readStream(java.io.InputStream stream) |
void |
remove() |
void |
reset() |
void |
shutdown() |
protected DocumentIterator backendIterator
protected LabelsSource generator
public DocumentIteratorConverter(@NonNull
LabelAwareDocumentIterator iterator)
public DocumentIteratorConverter(@NonNull
DocumentIterator iterator,
@NonNull
LabelsSource generator)
public boolean hasNextDocument()
hasNextDocument in interface LabelAwareIteratorpublic LabelledDocument nextDocument()
nextDocument in interface LabelAwareIteratorpublic void reset()
reset in interface LabelAwareIteratorpublic boolean hasNext()
hasNext in interface java.util.Iterator<LabelledDocument>public LabelledDocument next()
next in interface java.util.Iterator<LabelledDocument>public void remove()
remove in interface java.util.Iterator<LabelledDocument>public LabelsSource getLabelsSource()
getLabelsSource in interface LabelAwareIteratorpublic void shutdown()
shutdown in interface LabelAwareIteratorprotected java.lang.String readStream(java.io.InputStream stream)
throws java.io.IOException
java.io.IOException