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 LabelAwareIteratorpublic LabelledDocument nextDocument()
nextDocument in interface LabelAwareIteratorpublic void reset()
reset in interface LabelAwareIteratorpublic LabelsSource getLabelsSource()
getLabelsSource in interface LabelAwareIteratorpublic 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 LabelAwareIteratorpublic void remove()
remove in interface java.util.Iterator<LabelledDocument>