Class DayTimeIntervalDurationConverter
- java.lang.Object
-
- org.apache.flink.table.data.conversion.DayTimeIntervalDurationConverter
-
- All Implemented Interfaces:
Serializable,DataStructureConverter<Long,java.time.Duration>
@Internal public class DayTimeIntervalDurationConverter extends Object implements DataStructureConverter<Long,java.time.Duration>
Converter forDayTimeIntervalTypeofDurationexternal type.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static DayTimeIntervalDurationConverterINSTANCE
-
Constructor Summary
Constructors Constructor Description DayTimeIntervalDurationConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.DurationtoExternal(Long internal)Converts to external data structure.LongtoInternal(java.time.Duration 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
-
-
-
-
Field Detail
-
INSTANCE
public static final DayTimeIntervalDurationConverter INSTANCE
-
-
Method Detail
-
toInternal
public Long toInternal(java.time.Duration 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<Long,java.time.Duration>
-
toExternal
public java.time.Duration toExternal(Long 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<Long,java.time.Duration>
-
-