Package org.apache.iceberg.flink.source
Class DataIterator<T>
java.lang.Object
org.apache.iceberg.flink.source.DataIterator<T>
- Type Parameters:
- T- is the output data type returned by this iterator.
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- Iterator<T>,- CloseableIterator<T>
Flink data iterator that reads 
CombinedScanTask into a CloseableIterator- 
Constructor SummaryConstructorsConstructorDescriptionDataIterator(FileScanTaskReader<T> fileScanTaskReader, CombinedScanTask task, FileIO io, EncryptionManager encryption) 
- 
Method SummaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.IteratorforEachRemaining, remove
- 
Constructor Details- 
DataIteratorpublic DataIterator(FileScanTaskReader<T> fileScanTaskReader, CombinedScanTask task, FileIO io, EncryptionManager encryption) 
 
- 
- 
Method Details- 
seekpublic void seek(int startingFileOffset, long startingRecordOffset) (startingFileOffset, startingRecordOffset) points to the next row that reader should resume from. E.g., if the seek position is (file=0, record=1), seek moves the iterator position to the 2nd row in file 0. When next() is called after seek, 2nd row from file 0 should be returned.
- 
hasNextpublic boolean hasNext()
- 
next
- 
currentFileHasNextpublic boolean currentFileHasNext()
- 
close- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Throws:
- IOException
 
- 
fileOffsetpublic int fileOffset()
- 
recordOffsetpublic long recordOffset()
 
-