T - is the output data type returned by this iterator.@Internal
public class DataIterator<T>
extends java.lang.Object
implements org.apache.iceberg.io.CloseableIterator<T>
CombinedScanTask into a CloseableIterator| Constructor and Description |
|---|
DataIterator(FileScanTaskReader<T> fileScanTaskReader,
org.apache.iceberg.CombinedScanTask task,
org.apache.iceberg.io.FileIO io,
org.apache.iceberg.encryption.EncryptionManager encryption) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
currentFileHasNext() |
int |
fileOffset() |
boolean |
hasNext() |
T |
next() |
long |
recordOffset() |
void |
seek(int startingFileOffset,
long startingRecordOffset)
(startingFileOffset, startingRecordOffset) points to the next row that reader should resume
from.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic DataIterator(FileScanTaskReader<T> fileScanTaskReader, org.apache.iceberg.CombinedScanTask task, org.apache.iceberg.io.FileIO io, org.apache.iceberg.encryption.EncryptionManager encryption)
public void seek(int startingFileOffset,
long startingRecordOffset)
public boolean hasNext()
hasNext in interface java.util.Iterator<T>public boolean currentFileHasNext()
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic int fileOffset()
public long recordOffset()