public class BasicLabelAwareIterator extends java.lang.Object implements LabelAwareIterator
Modifier and Type | Class and Description |
---|---|
static class |
BasicLabelAwareIterator.Builder |
Modifier and Type | Field and Description |
---|---|
protected LabelAwareIterator |
backendIterator |
protected java.util.concurrent.atomic.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() |
protected java.util.concurrent.atomic.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 java.util.Iterator<LabelledDocument>
public LabelledDocument next()
next
in interface java.util.Iterator<LabelledDocument>
public void shutdown()
shutdown
in interface LabelAwareIterator
public void remove()
remove
in interface java.util.Iterator<LabelledDocument>