Class LocalZonedTimestampInstantConverter

  • All Implemented Interfaces:
    Serializable, DataStructureConverter<org.apache.flink.table.data.TimestampData,​java.time.Instant>

    @Internal
    public class LocalZonedTimestampInstantConverter
    extends Object
    implements DataStructureConverter<org.apache.flink.table.data.TimestampData,​java.time.Instant>
    Converter for LocalZonedTimestampType of Instant external type.
    See Also:
    Serialized Form
    • Constructor Detail

      • LocalZonedTimestampInstantConverter

        public LocalZonedTimestampInstantConverter()
    • Method Detail

      • toInternal

        public org.apache.flink.table.data.TimestampData toInternal​(java.time.Instant 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 interface DataStructureConverter<org.apache.flink.table.data.TimestampData,​java.time.Instant>
      • toExternal

        public java.time.Instant toExternal​(org.apache.flink.table.data.TimestampData 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 interface DataStructureConverter<org.apache.flink.table.data.TimestampData,​java.time.Instant>