public class FileLabelAwareIterator extends java.lang.Object implements LabelAwareIterator
| Modifier and Type | Class and Description |
|---|---|
static class |
FileLabelAwareIterator.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<java.io.File> |
files |
protected LabelsSource |
labelsSource |
protected java.util.concurrent.atomic.AtomicInteger |
position |
| Modifier | Constructor and Description |
|---|---|
protected |
FileLabelAwareIterator() |
protected |
FileLabelAwareIterator(java.util.List<java.io.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() |
protected java.util.List<java.io.File> files
protected java.util.concurrent.atomic.AtomicInteger position
protected LabelsSource labelsSource
protected FileLabelAwareIterator()
protected FileLabelAwareIterator(@NonNull
java.util.List<java.io.File> files,
@NonNull
LabelsSource source)
public boolean hasNextDocument()
hasNextDocument in interface LabelAwareIteratorpublic LabelledDocument nextDocument()
nextDocument in interface LabelAwareIteratorpublic boolean hasNext()
hasNext in interface java.util.Iterator<LabelledDocument>public LabelledDocument next()
next in interface java.util.Iterator<LabelledDocument>public void remove()
remove in interface java.util.Iterator<LabelledDocument>public void shutdown()
shutdown in interface LabelAwareIteratorpublic void reset()
reset in interface LabelAwareIteratorpublic LabelsSource getLabelsSource()
getLabelsSource in interface LabelAwareIterator