public class DocumentIteratorConverter extends 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 String |
readStream(InputStream stream) |
void |
remove() |
void |
reset() |
void |
shutdown() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
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 LabelAwareIterator
public LabelledDocument nextDocument()
nextDocument
in interface LabelAwareIterator
public void reset()
reset
in interface LabelAwareIterator
public boolean hasNext()
hasNext
in interface Iterator<LabelledDocument>
public LabelledDocument next()
next
in interface Iterator<LabelledDocument>
public void remove()
remove
in interface Iterator<LabelledDocument>
public LabelsSource getLabelsSource()
getLabelsSource
in interface LabelAwareIterator
public void shutdown()
shutdown
in interface LabelAwareIterator
protected String readStream(InputStream stream) throws IOException
IOException
Copyright © 2017. All rights reserved.