Class DateLocalDateConverter
- java.lang.Object
-
- org.apache.flink.table.data.conversion.DateLocalDateConverter
-
- All Implemented Interfaces:
Serializable
,DataStructureConverter<Integer,LocalDate>
@Internal public class DateLocalDateConverter extends Object implements DataStructureConverter<Integer,LocalDate>
Converter forDateType
ofLocalDate
external type.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DateLocalDateConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalDate
toExternal(Integer internal)
Converts to external data structure.Integer
toInternal(LocalDate 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(LocalDate 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<Integer,LocalDate>
-
toExternal
public LocalDate toExternal(Integer 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<Integer,LocalDate>
-
-