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:
java.io.Closeable
,java.lang.AutoCloseable
,java.util.Iterator<T>
,CloseableIterator<T>
@Internal public class DataIterator<T> extends java.lang.Object implements CloseableIterator<T>
Flink data iterator that readsCombinedScanTask
into aCloseableIterator
-
-
Constructor Summary
Constructors Constructor Description DataIterator(FileScanTaskReader<T> fileScanTaskReader, CombinedScanTask task, FileIO io, EncryptionManager encryption)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
hasNext()
T
next()
-
-
-
Constructor Detail
-
DataIterator
public DataIterator(FileScanTaskReader<T> fileScanTaskReader, CombinedScanTask task, FileIO io, EncryptionManager encryption)
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<T>
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
-