Package org.apache.flink.formats.csv
Class CsvRowSchemaConverter
java.lang.Object
org.apache.flink.formats.csv.CsvRowSchemaConverter
Converter functions that covert Flink's type information to Jackson's
CsvSchema.
In CsvSchema, there are four types (string, number, boolean, and array). In order to
satisfy various Flink types, this class sorts out instances of TypeInformation and LogicalType that are not supported. It converts supported types to one of CsvSchema's types.
Note: Changes in this class need to be kept in sync with the corresponding runtime classes
CsvRowDeserializationSchema and CsvRowSerializationSchema.
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.flink.shaded.jackson2.com.fasterxml.jackson.dataformat.csv.CsvSchemaconvert(org.apache.flink.api.java.typeutils.RowTypeInfo rowType) ConvertRowTypeInfotoCsvSchema.static org.apache.flink.shaded.jackson2.com.fasterxml.jackson.dataformat.csv.CsvSchemaconvert(org.apache.flink.table.types.logical.RowType rowType) ConvertRowTypetoCsvSchema.
-
Method Details
-
convert
public static org.apache.flink.shaded.jackson2.com.fasterxml.jackson.dataformat.csv.CsvSchema convert(org.apache.flink.api.java.typeutils.RowTypeInfo rowType) ConvertRowTypeInfotoCsvSchema. -
convert
public static org.apache.flink.shaded.jackson2.com.fasterxml.jackson.dataformat.csv.CsvSchema convert(org.apache.flink.table.types.logical.RowType rowType) ConvertRowTypetoCsvSchema.
-