Package org.apache.flink.table.data.util
Class DataFormatConverters.DataFormatConverter<Internal,External>
- java.lang.Object
-
- org.apache.flink.table.data.util.DataFormatConverters.DataFormatConverter<Internal,External>
-
- Type Parameters:
Internal
- Internal data format.External
- External data format.
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DataFormatConverters.AbstractRowDataConverter
,DataFormatConverters.BigDecimalConverter
,DataFormatConverters.DateConverter
,DataFormatConverters.GenericConverter
,DataFormatConverters.IdentityConverter
,DataFormatConverters.InstantConverter
,DataFormatConverters.LocalDateConverter
,DataFormatConverters.LocalDateTimeConverter
,DataFormatConverters.LocalTimeConverter
,DataFormatConverters.LongTimestampDataConverter
,DataFormatConverters.MapConverter
,DataFormatConverters.ObjectArrayConverter
,DataFormatConverters.PrimitiveBooleanArrayConverter
,DataFormatConverters.PrimitiveDoubleArrayConverter
,DataFormatConverters.PrimitiveFloatArrayConverter
,DataFormatConverters.PrimitiveIntArrayConverter
,DataFormatConverters.PrimitiveLongArrayConverter
,DataFormatConverters.PrimitiveShortArrayConverter
,DataFormatConverters.StringConverter
,DataFormatConverters.TimeConverter
,DataFormatConverters.TimestampConverter
,DataFormatConverters.TimestampLtzConverter
- Enclosing class:
- DataFormatConverters
public abstract static class DataFormatConverters.DataFormatConverter<Internal,External> extends Object implements Serializable
Converter between internal data format and java format.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DataFormatConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description External
toExternal(Internal value)
Convert a internal data format to its external(Java) equivalent while automatically handling nulls.External
toExternal(RowData row, int column)
Given a internalType row, convert the value at column `column` to its external(Java) equivalent.Internal
toInternal(External value)
Converts a external(Java) data format to its internal equivalent while automatically handling nulls.
-
-
-
Method Detail
-
toInternal
public final Internal toInternal(External value)
Converts a external(Java) data format to its internal equivalent while automatically handling nulls.
-
toExternal
public final External toExternal(Internal value)
Convert a internal data format to its external(Java) equivalent while automatically handling nulls.
-
-