public class DocumentIteratorConverter extends Object implements LabelAwareIterator
| Modifier and Type | Field and Description |
|---|---|
protected DocumentIterator |
backendIterator |
protected LabelsSource |
generator |
| Constructor and Description |
|---|
DocumentIteratorConverter(@NonNull DocumentIterator iterator,
@NonNull LabelsSource generator) |
DocumentIteratorConverter(@NonNull 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, waitforEachRemainingprotected DocumentIterator backendIterator
protected LabelsSource generator
public DocumentIteratorConverter(@NonNull
@NonNull LabelAwareDocumentIterator iterator)
public DocumentIteratorConverter(@NonNull
@NonNull DocumentIterator iterator,
@NonNull
@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 Iterator<LabelledDocument>public LabelledDocument next()
next in interface Iterator<LabelledDocument>public void remove()
remove in interface Iterator<LabelledDocument>public LabelsSource getLabelsSource()
getLabelsSource in interface LabelAwareIteratorpublic void shutdown()
shutdown in interface LabelAwareIteratorprotected String readStream(InputStream stream) throws IOException
IOExceptionCopyright © 2021. All rights reserved.