Enum JdbcSinkConnectorConfig.PrimaryKeyMode

java.lang.Object
java.lang.Enum<JdbcSinkConnectorConfig.PrimaryKeyMode>
io.debezium.connector.jdbc.JdbcSinkConnectorConfig.PrimaryKeyMode
All Implemented Interfaces:
io.debezium.config.EnumeratedValue, Serializable, Comparable<JdbcSinkConnectorConfig.PrimaryKeyMode>
Enclosing class:
JdbcSinkConnectorConfig

public static enum JdbcSinkConnectorConfig.PrimaryKeyMode extends Enum<JdbcSinkConnectorConfig.PrimaryKeyMode> implements io.debezium.config.EnumeratedValue
Different modes that which primary keys are handled.
  • Enum Constant Details

    • NONE

      public static final JdbcSinkConnectorConfig.PrimaryKeyMode NONE
      No keys are utilized, meaning tables will be created or managed without any primary keys.
    • KAFKA

      public static final JdbcSinkConnectorConfig.PrimaryKeyMode KAFKA
      The Kafka event coordinates are used as the primary key, which include the topic name, the partition, and the offset associated with the event.
    • RECORD_KEY

      public static final JdbcSinkConnectorConfig.PrimaryKeyMode RECORD_KEY
      Fields from the record key are to be used, which can include struct-based keys or primitives. In the case of primitives, the primary.key.fields property must be supplied with a single value, which controls what the primary key column name will be in the destination table. In the case of a struct, the primary.key.fields property is optional and if specified can specify a subset of the record's key fields to for the destination table's primary key.
    • RECORD_VALUE

      public static final JdbcSinkConnectorConfig.PrimaryKeyMode RECORD_VALUE
      Fields from the event's record value are used. The primary.key.fields property should be specified to identify the fields that will be the basis for the destination table's primary key.
  • Field Details

  • Constructor Details

    • PrimaryKeyMode

      private PrimaryKeyMode(String mode)
  • Method Details

    • values

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

      public static JdbcSinkConnectorConfig.PrimaryKeyMode valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • parse

      public static JdbcSinkConnectorConfig.PrimaryKeyMode parse(String value)
    • getValue

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