public class FileLabelAwareIterator extends Object implements LabelAwareIterator
Modifier and Type | Class and Description |
---|---|
static class |
FileLabelAwareIterator.Builder |
Modifier and Type | Field and Description |
---|---|
protected List<File> |
files |
protected LabelsSource |
labelsSource |
protected AtomicInteger |
position |
Modifier | Constructor and Description |
---|---|
protected |
FileLabelAwareIterator() |
protected |
FileLabelAwareIterator(List<File> files,
LabelsSource source) |
Modifier and Type | Method and Description |
---|---|
LabelsSource |
getLabelsSource() |
boolean |
hasNext() |
boolean |
hasNextDocument() |
LabelledDocument |
next() |
LabelledDocument |
nextDocument() |
void |
remove() |
void |
reset() |
void |
shutdown() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
protected AtomicInteger position
protected LabelsSource labelsSource
protected FileLabelAwareIterator()
protected FileLabelAwareIterator(@NonNull List<File> files, @NonNull LabelsSource source)
public boolean hasNextDocument()
hasNextDocument
in interface LabelAwareIterator
public LabelledDocument nextDocument()
nextDocument
in interface LabelAwareIterator
public boolean hasNext()
hasNext
in interface Iterator<LabelledDocument>
public LabelledDocument next()
next
in interface Iterator<LabelledDocument>
public void remove()
remove
in interface Iterator<LabelledDocument>
public void shutdown()
shutdown
in interface LabelAwareIterator
public void reset()
reset
in interface LabelAwareIterator
public LabelsSource getLabelsSource()
getLabelsSource
in interface LabelAwareIterator
Copyright © 2017. All rights reserved.