public abstract class DataIteratorReaderFunction<T> extends java.lang.Object implements ReaderFunction<T>
ReaderFunction
implementation that uses DataIterator
.Constructor and Description |
---|
DataIteratorReaderFunction(DataIteratorBatcher<T> batcher) |
Modifier and Type | Method and Description |
---|---|
CloseableIterator<org.apache.flink.connector.base.source.reader.RecordsWithSplitIds<RecordAndPosition<T>>> |
apply(IcebergSourceSplit split) |
protected abstract DataIterator<T> |
createDataIterator(IcebergSourceSplit split) |
public DataIteratorReaderFunction(DataIteratorBatcher<T> batcher)
protected abstract DataIterator<T> createDataIterator(IcebergSourceSplit split)
public CloseableIterator<org.apache.flink.connector.base.source.reader.RecordsWithSplitIds<RecordAndPosition<T>>> apply(IcebergSourceSplit split)
apply
in interface java.util.function.Function<IcebergSourceSplit,CloseableIterator<org.apache.flink.connector.base.source.reader.RecordsWithSplitIds<RecordAndPosition<T>>>>