Class YearMonthIntervalPeriodConverter
- java.lang.Object
-
- org.apache.flink.table.data.conversion.YearMonthIntervalPeriodConverter
-
- All Implemented Interfaces:
Serializable,DataStructureConverter<Integer,java.time.Period>
@Internal public class YearMonthIntervalPeriodConverter extends Object implements DataStructureConverter<Integer,java.time.Period>
Converter forYearMonthIntervalTypeofPeriodexternal type.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static YearMonthIntervalPeriodConvertercreate(org.apache.flink.table.types.DataType dataType)static YearMonthIntervalPeriodConvertercreate(org.apache.flink.table.types.logical.YearMonthIntervalType intervalType)java.time.PeriodtoExternal(Integer internal)Converts to external data structure.IntegertoInternal(java.time.Period external)Converts to internal data structure.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.table.data.conversion.DataStructureConverter
isIdentityConversion, open, toExternalOrNull, toInternalOrNull
-
-
-
-
Method Detail
-
toInternal
public Integer toInternal(java.time.Period external)
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,java.time.Period>
-
toExternal
public java.time.Period toExternal(Integer internal)
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,java.time.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)
-
-