Class AvroGenericRecordConverter
java.lang.Object
org.apache.iceberg.flink.source.reader.AvroGenericRecordConverter
- All Implemented Interfaces:
Serializable
,Function<org.apache.flink.table.data.RowData,
,org.apache.avro.generic.GenericRecord> org.apache.flink.api.java.typeutils.ResultTypeQueryable<org.apache.avro.generic.GenericRecord>
,RowDataConverter<org.apache.avro.generic.GenericRecord>
public class AvroGenericRecordConverter
extends Object
implements RowDataConverter<org.apache.avro.generic.GenericRecord>
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.avro.generic.GenericRecord
apply
(org.apache.flink.table.data.RowData rowData) static AvroGenericRecordConverter
fromAvroSchema
(org.apache.avro.Schema avroSchema, String tableName) static AvroGenericRecordConverter
fromIcebergSchema
(Schema icebergSchema, String tableName) org.apache.flink.api.common.typeinfo.TypeInformation
<org.apache.avro.generic.GenericRecord>
-
Method Details
-
fromIcebergSchema
-
fromAvroSchema
public static AvroGenericRecordConverter fromAvroSchema(org.apache.avro.Schema avroSchema, String tableName) -
apply
public org.apache.avro.generic.GenericRecord apply(org.apache.flink.table.data.RowData rowData) -
getProducedType
public org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.avro.generic.GenericRecord> getProducedType()- Specified by:
getProducedType
in interfaceorg.apache.flink.api.java.typeutils.ResultTypeQueryable<org.apache.avro.generic.GenericRecord>
-