Package io.debezium.connector.jdbc
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 Summary
Enum ConstantsEnum ConstantDescriptionThe Kafka event coordinates are used as the primary key, which include the topic name, the partition, and the offset associated with the event.No keys are utilized, meaning tables will be created or managed without any primary keys.Fields from the event's record header are used.Fields from the record key are to be used, which can include struct-based keys or primitives.Fields from the event's record value are used. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Enum Constant Details
-
NONE
No keys are utilized, meaning tables will be created or managed without any primary keys. -
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
Fields from the record key are to be used, which can include struct-based keys or primitives. In the case of primitives, theprimary.key.fieldsproperty 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, theprimary.key.fieldsproperty 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
Fields from the event's record value are used. Theprimary.key.fieldsproperty should be specified to identify the fields that will be the basis for the destination table's primary key. -
RECORD_HEADER
Fields from the event's record header are used. Theprimary.key.fieldsproperty should be specified to identify the fields that will be the basis for the destination table's primary key.
-
-
Field Details
-
mode
-
-
Constructor Details
-
PrimaryKeyMode
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
parse
-
getValue
- Specified by:
getValuein interfaceio.debezium.config.EnumeratedValue
-