Class YearMonthIntervalPeriodConverter
java.lang.Object
org.apache.flink.table.data.conversion.YearMonthIntervalPeriodConverter
- All Implemented Interfaces:
Serializable,DataStructureConverter<Integer,Period>
@Internal
public class YearMonthIntervalPeriodConverter
extends Object
implements DataStructureConverter<Integer,Period>
Converter for
YearMonthIntervalType of Period external type.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncreate(org.apache.flink.table.types.DataType dataType) create(org.apache.flink.table.types.logical.YearMonthIntervalType intervalType) toExternal(Integer internal) Converts to external data structure.toInternal(Period external) Converts to internal data structure.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.table.data.conversion.DataStructureConverter
isIdentityConversion, open, toExternalOrNull, toInternalOrNull
-
Method Details
-
toInternal
Description copied from interface:DataStructureConverterConverts to internal data structure.Note: Parameter must not be null. Output must not be null.
- Specified by:
toInternalin interfaceDataStructureConverter<Integer,Period>
-
toExternal
Description copied from interface:DataStructureConverterConverts to external data structure.Note: Parameter must not be null. Output must not be null.
- Specified by:
toExternalin interfaceDataStructureConverter<Integer,Period>
-
create
public static YearMonthIntervalPeriodConverter create(org.apache.flink.table.types.DataType dataType) -
create
public static YearMonthIntervalPeriodConverter create(org.apache.flink.table.types.logical.YearMonthIntervalType intervalType)
-