Class DataStructureConverters
java.lang.Object
org.apache.flink.table.data.conversion.DataStructureConverters
Registry of available data structure converters.
Data structure converters are used at the edges for the API for converting between internal
structures (see RowData) and external structures (see DataType.getConversionClass()).
This is useful for UDFs, sources, sinks, or exposing data in the API (e.g. via a
collect()).
Note: It is NOT the responsibility of a converter to normalize the data. Thus, a converter does neither change the precision of a timestamp nor prune/expand strings to their defined length. This might be the responsibility of data classes that are called transitively.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DataStructureConverter<Object,Object> getConverter(org.apache.flink.table.types.DataType dataType) Returns a converter for the givenDataType.
-
Constructor Details
-
DataStructureConverters
public DataStructureConverters()
-
-
Method Details
-
getConverter
public static DataStructureConverter<Object,Object> getConverter(org.apache.flink.table.types.DataType dataType) Returns a converter for the givenDataType.
-