Class AvroGenericRecordConverter

  • All Implemented Interfaces:
    java.io.Serializable, java.util.function.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 java.lang.Object
    implements RowDataConverter<org.apache.avro.generic.GenericRecord>
    See Also:
    Serialized Form
    • Method Detail

      • fromAvroSchema

        public static AvroGenericRecordConverter fromAvroSchema​(org.apache.avro.Schema avroSchema,
                                                                java.lang.String tableName)
      • apply

        public org.apache.avro.generic.GenericRecord apply​(org.apache.flink.table.data.RowData rowData)
        Specified by:
        apply in interface java.util.function.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>