Enum Class TimestampMode

java.lang.Object
java.lang.Enum<TimestampMode>
org.gridgain.kafka.source.TimestampMode
All Implemented Interfaces:
Serializable, Comparable<TimestampMode>, Constable

public enum TimestampMode extends Enum<TimestampMode>
Conversion mode for ColumnType.TIMESTAMP (Instant Java type, "TIMESTAMP WITH LOCAL TIME ZONE" SQL type).
  • Enum Constant Details

    • FLOAT64

      public static final TimestampMode FLOAT64
      Convert Instant to a Double representing the number of milliseconds since Unix epoch. This mode is compatible with Kafka Connect KafkaJsonDeserializer and KafkaJsonSchemaDeserializer.
    • INT64

      public static final TimestampMode INT64
      Convert Instant to a Long representing the number of milliseconds since Unix epoch.
    • STRING

      public static final TimestampMode STRING
      Convert Instant to a string in ISO-8601 format.
    • KAFKA_TIMESTAMP

      public static final TimestampMode KAFKA_TIMESTAMP
      Convert Instant to Kafka Connect Timestamp logical type. The underlying representation is a long representing the number of milliseconds since Unix epoch.
  • Method Details

    • values

      public static TimestampMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TimestampMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null