Class DayTimeIntervalDurationConverter
- java.lang.Object
-
- org.apache.flink.table.data.conversion.DayTimeIntervalDurationConverter
-
- All Implemented Interfaces:
Serializable
,DataStructureConverter<Long,Duration>
@Internal public class DayTimeIntervalDurationConverter extends Object implements DataStructureConverter<Long,Duration>
Converter forDayTimeIntervalType
ofDuration
external type.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static DayTimeIntervalDurationConverter
INSTANCE
-
Constructor Summary
Constructors Constructor Description DayTimeIntervalDurationConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Duration
toExternal(Long internal)
Converts to external data structure.Long
toInternal(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(Duration external)
Description copied from interface:DataStructureConverter
Converts to internal data structure.Note: Parameter must not be null. Output must not be null.
- Specified by:
toInternal
in interfaceDataStructureConverter<Long,Duration>
-
toExternal
public Duration toExternal(Long internal)
Description copied from interface:DataStructureConverter
Converts to external data structure.Note: Parameter must not be null. Output must not be null.
- Specified by:
toExternal
in interfaceDataStructureConverter<Long,Duration>
-
-