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 |
hasNextDocument()
This method checks, if there's more LabelledDocuments
|
LabelledDocument |
nextDocument()
This method returns next LabelledDocument
|
void |
reset()
This methods resets LabelAwareIterator
|
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
Copyright © 2016. All Rights Reserved.