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(@NonNull 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, waitforEachRemainingprotected LabelAwareIterator backedIterator
protected AsyncIterator<LabelledDocument> asyncIterator
protected int bufferSize
public AsyncLabelAwareIterator(@NonNull
@NonNull LabelAwareIterator iterator,
int bufferSize)
public void remove()
remove in interface Iterator<LabelledDocument>public boolean hasNextDocument()
hasNextDocument in interface LabelAwareIteratorpublic LabelledDocument nextDocument()
nextDocument in interface LabelAwareIteratorpublic void reset()
reset in interface LabelAwareIteratorpublic void shutdown()
shutdown in interface LabelAwareIteratorpublic LabelsSource getLabelsSource()
getLabelsSource in interface LabelAwareIteratorpublic boolean hasNext()
hasNext in interface Iterator<LabelledDocument>public LabelledDocument next() throws NoSuchElementException
next in interface Iterator<LabelledDocument>NoSuchElementExceptionCopyright © 2021. All rights reserved.