Class AvroGenericRecordReaderFunction
java.lang.Object
org.apache.iceberg.flink.source.reader.DataIteratorReaderFunction<org.apache.avro.generic.GenericRecord>
org.apache.iceberg.flink.source.reader.AvroGenericRecordReaderFunction
- All Implemented Interfaces:
Serializable
,Function<IcebergSourceSplit,
,CloseableIterator<org.apache.flink.connector.base.source.reader.RecordsWithSplitIds<RecordAndPosition<org.apache.avro.generic.GenericRecord>>>> ReaderFunction<org.apache.avro.generic.GenericRecord>
public class AvroGenericRecordReaderFunction
extends DataIteratorReaderFunction<org.apache.avro.generic.GenericRecord>
Read Iceberg rows as
GenericRecord
.- See Also:
-
Constructor Summary
ConstructorDescriptionAvroGenericRecordReaderFunction
(String tableName, org.apache.flink.configuration.ReadableConfig config, Schema tableSchema, Schema projectedSchema, String nameMapping, boolean caseSensitive, FileIO io, EncryptionManager encryption, List<Expression> filters) -
Method Summary
Modifier and TypeMethodDescriptionprotected DataIterator<org.apache.avro.generic.GenericRecord>
Create a reader function without projection and name mapping.Methods inherited from class org.apache.iceberg.flink.source.reader.DataIteratorReaderFunction
apply
-
Constructor Details
-
AvroGenericRecordReaderFunction
public AvroGenericRecordReaderFunction(String tableName, org.apache.flink.configuration.ReadableConfig config, Schema tableSchema, Schema projectedSchema, String nameMapping, boolean caseSensitive, FileIO io, EncryptionManager encryption, List<Expression> filters)
-
-
Method Details
-
fromTable
Create a reader function without projection and name mapping. Column name is case-insensitive. -
createDataIterator
protected DataIterator<org.apache.avro.generic.GenericRecord> createDataIterator(IcebergSourceSplit split) - Specified by:
createDataIterator
in classDataIteratorReaderFunction<org.apache.avro.generic.GenericRecord>
-