public class BasicLabelAwareIterator extends Object implements LabelAwareIterator
| Modifier and Type | Class and Description |
|---|---|
static class |
BasicLabelAwareIterator.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected LabelAwareIterator |
backendIterator |
protected AtomicLong |
documentPosition |
protected LabelsSource |
generator |
| Modifier and Type | Method and Description |
|---|---|
LabelsSource |
getLabelsSource()
This method returns LabelsSource instance, containing all labels derived from this iterator
|
boolean |
hasNext() |
boolean |
hasNextDocument()
This method checks, if there's more LabelledDocuments
|
LabelledDocument |
next() |
LabelledDocument |
nextDocument()
This method returns next LabelledDocument
|
void |
remove() |
void |
reset()
This methods resets LabelAwareIterator
|
void |
shutdown() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingprotected AtomicLong documentPosition
protected LabelsSource generator
protected transient LabelAwareIterator backendIterator
public boolean hasNextDocument()
hasNextDocument in interface LabelAwareIteratorpublic LabelledDocument nextDocument()
nextDocument in interface LabelAwareIteratorpublic void reset()
reset in interface LabelAwareIteratorpublic LabelsSource getLabelsSource()
getLabelsSource in interface LabelAwareIteratorpublic boolean hasNext()
hasNext in interface Iterator<LabelledDocument>public LabelledDocument next()
next in interface Iterator<LabelledDocument>public void shutdown()
shutdown in interface LabelAwareIteratorpublic void remove()
remove in interface Iterator<LabelledDocument>Copyright © 2021. All rights reserved.