Package org.apache.flink.formats.avro
Class RowDataToAvroConverters
java.lang.Object
org.apache.flink.formats.avro.RowDataToAvroConverters
Tool class used to convert from
RowData to Avro GenericRecord.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceRuntime converter that converts objects of Flink Table & SQL internal data structures to corresponding Avro data structures. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateConverter(org.apache.flink.table.types.logical.LogicalType type) Creates a runtime converter according to the given logical type that converts objects of Flink Table & SQL internal data structures to corresponding Avro data structures.createConverter(org.apache.flink.table.types.logical.LogicalType type, boolean legacyTimestampMapping)
-
Constructor Details
-
RowDataToAvroConverters
public RowDataToAvroConverters()
-
-
Method Details
-
createConverter
public static RowDataToAvroConverters.RowDataToAvroConverter createConverter(org.apache.flink.table.types.logical.LogicalType type) Creates a runtime converter according to the given logical type that converts objects of Flink Table & SQL internal data structures to corresponding Avro data structures. -
createConverter
public static RowDataToAvroConverters.RowDataToAvroConverter createConverter(org.apache.flink.table.types.logical.LogicalType type, boolean legacyTimestampMapping)
-