Enum Class JdbcSinkConnectorConfig.PrimaryKeyMode

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

public static enum JdbcSinkConnectorConfig.PrimaryKeyMode extends Enum<JdbcSinkConnectorConfig.PrimaryKeyMode> implements 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.
    • RECORD_HEADER

      public static final JdbcSinkConnectorConfig.PrimaryKeyMode RECORD_HEADER
      Fields from the event's record header 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