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, wait
forEachRemaining
protected AtomicLong documentPosition
protected LabelsSource generator
protected transient LabelAwareIterator backendIterator
public boolean hasNextDocument()
hasNextDocument
in interface LabelAwareIterator
public LabelledDocument nextDocument()
nextDocument
in interface LabelAwareIterator
public void reset()
reset
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>
public void shutdown()
shutdown
in interface LabelAwareIterator
public void remove()
remove
in interface Iterator<LabelledDocument>
Copyright © 2017. All rights reserved.