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 Details

    • fromIcebergSchema

      public static AvroGenericRecordConverter fromIcebergSchema(Schema icebergSchema, String tableName)
    • 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)
      Specified by:
      apply in interface Function<org.apache.flink.table.data.RowData,org.apache.avro.generic.GenericRecord>
    • getProducedType

      public org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.avro.generic.GenericRecord> getProducedType()
      Specified by:
      getProducedType in interface org.apache.flink.api.java.typeutils.ResultTypeQueryable<org.apache.avro.generic.GenericRecord>