public class AsyncLabelAwareIterator extends Object implements LabelAwareIterator, Iterator<LabelledDocument>
Modifier and Type | Field and Description |
---|---|
protected AsyncIterator<LabelledDocument> |
asyncIterator |
protected LabelAwareIterator |
backedIterator |
protected int |
bufferSize |
Constructor and Description |
---|
AsyncLabelAwareIterator(LabelAwareIterator iterator,
int bufferSize) |
Modifier and Type | Method and Description |
---|---|
LabelsSource |
getLabelsSource() |
boolean |
hasNext() |
boolean |
hasNextDocument() |
LabelledDocument |
next() |
LabelledDocument |
nextDocument() |
void |
remove() |
void |
reset() |
void |
shutdown() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
protected LabelAwareIterator backedIterator
protected AsyncIterator<LabelledDocument> asyncIterator
protected int bufferSize
public AsyncLabelAwareIterator(@NonNull LabelAwareIterator iterator, int bufferSize)
public void remove()
remove
in interface Iterator<LabelledDocument>
public boolean hasNextDocument()
hasNextDocument
in interface LabelAwareIterator
public LabelledDocument nextDocument()
nextDocument
in interface LabelAwareIterator
public void reset()
reset
in interface LabelAwareIterator
public void shutdown()
shutdown
in interface LabelAwareIterator
public LabelsSource getLabelsSource()
getLabelsSource
in interface LabelAwareIterator
public boolean hasNext()
hasNext
in interface Iterator<LabelledDocument>
public LabelledDocument next()
next
in interface Iterator<LabelledDocument>
Copyright © 2017. All rights reserved.