Enum Class SinkConnectorConfig.PrimaryKeyMode

java.lang.Object
java.lang.Enum<SinkConnectorConfig.PrimaryKeyMode>
io.debezium.sink.SinkConnectorConfig.PrimaryKeyMode
All Implemented Interfaces:
EnumeratedValue, Serializable, Comparable<SinkConnectorConfig.PrimaryKeyMode>, Constable
Enclosing interface:
SinkConnectorConfig

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

    • NONE

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

      public static final SinkConnectorConfig.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 SinkConnectorConfig.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 SinkConnectorConfig.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 SinkConnectorConfig.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

    • mode

      private final String mode
  • Constructor Details

    • PrimaryKeyMode

      private PrimaryKeyMode(String mode)
  • Method Details

    • values

      public static SinkConnectorConfig.PrimaryKeyMode[] 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 SinkConnectorConfig.PrimaryKeyMode 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
    • parse

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

      public String getValue()
      Specified by:
      getValue in interface EnumeratedValue