Class AvroGenericRecordConverter
- java.lang.Object
-
- org.apache.iceberg.flink.source.reader.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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.avro.generic.GenericRecord
apply(org.apache.flink.table.data.RowData rowData)
static AvroGenericRecordConverter
fromAvroSchema(org.apache.avro.Schema avroSchema, java.lang.String tableName)
static AvroGenericRecordConverter
fromIcebergSchema(Schema icebergSchema, java.lang.String tableName)
org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.avro.generic.GenericRecord>
getProducedType()
-
-
-
Method Detail
-
fromIcebergSchema
public static AvroGenericRecordConverter fromIcebergSchema(Schema icebergSchema, java.lang.String tableName)
-
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 interfacejava.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 interfaceorg.apache.flink.api.java.typeutils.ResultTypeQueryable<org.apache.avro.generic.GenericRecord>
-
-