Enum Class TemporalPrecisionMode

java.lang.Object
java.lang.Enum<TemporalPrecisionMode>
io.debezium.jdbc.TemporalPrecisionMode
All Implemented Interfaces:
io.debezium.config.EnumeratedValue, Serializable, Comparable<TemporalPrecisionMode>, Constable

public enum TemporalPrecisionMode extends Enum<TemporalPrecisionMode> implements io.debezium.config.EnumeratedValue
The set of predefined TemporalPrecisionMode options.
  • Enum Constant Details

    • ADAPTIVE

      public static final TemporalPrecisionMode ADAPTIVE
      Represent time and date values based upon the resolution in the database, using io.debezium.time semantic types.
    • ADAPTIVE_TIME_MICROSECONDS

      public static final TemporalPrecisionMode ADAPTIVE_TIME_MICROSECONDS
      Represent timestamp, datetime and date values based upon the resolution in the database, using io.debezium.time semantic types. TIME fields will always be represented as microseconds in INT64 / Long using MicroTime
    • ISOSTRING

      public static final TemporalPrecisionMode ISOSTRING
      Represent timestamp, datetime, date and time values as ISO 8601 string, using IsoDate, IsoTime, IsoTimestamp semantic types.
    • CONNECT

      public static final TemporalPrecisionMode CONNECT
      Represent time and date values using Kafka Connect
      invalid reference
      org.apache.kafka.connect.data
      logical types, which always have millisecond precision.
    • MICROSECONDS

      public static final TemporalPrecisionMode MICROSECONDS
      Represent timestamp, datetime, time values using MicroTime semantic type, which always have microseconds precision
    • NANOSECONDS

      public static final TemporalPrecisionMode NANOSECONDS
      Represent timestamp, datetime, time values using NanoTime semantic type, which always have nanoseconds precision
  • Field Details

    • value

      private final String value
    • dateBuilder

      private final Supplier<org.apache.kafka.connect.data.SchemaBuilder> dateBuilder
    • timeBuilder

      private final Function<Integer,org.apache.kafka.connect.data.SchemaBuilder> timeBuilder
    • timestampBuilder

      private final Function<Integer,org.apache.kafka.connect.data.SchemaBuilder> timestampBuilder
  • Constructor Details

    • TemporalPrecisionMode

      private TemporalPrecisionMode(String value, Supplier<org.apache.kafka.connect.data.SchemaBuilder> dateBuilder, Function<Integer,org.apache.kafka.connect.data.SchemaBuilder> timeBuilder, Function<Integer,org.apache.kafka.connect.data.SchemaBuilder> timestampBuilder)
  • Method Details

    • values

      public static TemporalPrecisionMode[] 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 TemporalPrecisionMode 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
    • getValue

      public String getValue()
      Specified by:
      getValue in interface io.debezium.config.EnumeratedValue
    • parse

      public static TemporalPrecisionMode parse(String value)
      Determine if the supplied value is one of the predefined options.
      Parameters:
      value - the configuration property value; may not be null
      Returns:
      the matching option, or null if no match is found
    • parse

      public static TemporalPrecisionMode parse(String value, String defaultValue)
      Determine if the supplied value is one of the predefined options.
      Parameters:
      value - the configuration property value; may not be null
      defaultValue - the default value; may be null
      Returns:
      the matching option, or null if no match is found and the non-null default is invalid
    • getDateBuilder

      public org.apache.kafka.connect.data.SchemaBuilder getDateBuilder()
    • getTimeBuilder

      public org.apache.kafka.connect.data.SchemaBuilder getTimeBuilder(int precision)
    • getTimestampBuilder

      public org.apache.kafka.connect.data.SchemaBuilder getTimestampBuilder(int precision)