Package org.apache.iceberg.flink.source
Class RowDataToAvroGenericRecordConverter
java.lang.Object
org.apache.iceberg.flink.source.RowDataToAvroGenericRecordConverter
- All Implemented Interfaces:
- Function<org.apache.flink.table.data.RowData,- org.apache.avro.generic.GenericRecord> 
@Internal
public class RowDataToAvroGenericRecordConverter
extends Object
implements Function<org.apache.flink.table.data.RowData,org.apache.avro.generic.GenericRecord> 
This is not serializable because Avro 
Schema is not actually serializable, even though it
 implements Serializable interface.- 
Method SummaryModifier and TypeMethodDescriptionorg.apache.avro.generic.GenericRecordapply(org.apache.flink.table.data.RowData rowData) fromAvroSchema(org.apache.avro.Schema avroSchema) Create a mapper based on Avro schemafromIcebergSchema(String tableName, Schema icebergSchema) Create a converter based on Iceberg schema
- 
Method Details- 
applypublic org.apache.avro.generic.GenericRecord apply(org.apache.flink.table.data.RowData rowData) 
- 
fromIcebergSchemapublic static RowDataToAvroGenericRecordConverter fromIcebergSchema(String tableName, Schema icebergSchema) Create a converter based on Iceberg schema
- 
fromAvroSchemaCreate a mapper based on Avro schema
 
-