Package io.debezium.connector.cassandra
Enum CassandraConnectorConfig.VarIntHandlingMode
java.lang.Object
java.lang.Enum<CassandraConnectorConfig.VarIntHandlingMode>
io.debezium.connector.cassandra.CassandraConnectorConfig.VarIntHandlingMode
- All Implemented Interfaces:
io.debezium.config.EnumeratedValue,Serializable,Comparable<CassandraConnectorConfig.VarIntHandlingMode>
- Enclosing class:
- CassandraConnectorConfig
public static enum CassandraConnectorConfig.VarIntHandlingMode
extends Enum<CassandraConnectorConfig.VarIntHandlingMode>
implements io.debezium.config.EnumeratedValue
The set of predefined VarIntHandlingMode options.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresent varint values by using Java's long, which might not offer the precision but which is easy to use in consumers.Use java.math.BigDecimal to represent varint values, which are encoded in the change events by using a binary representation and Kafka Connect’s org.apache.kafka.connect.data.Decimal type.Encodes varint values as formatted strings. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Determine if the supplied value is one of the predefined options.Determine if the supplied value is one of the predefined options.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LONG
Represent varint values by using Java's long, which might not offer the precision but which is easy to use in consumers. -
PRECISE
Use java.math.BigDecimal to represent varint values, which are encoded in the change events by using a binary representation and Kafka Connect’s org.apache.kafka.connect.data.Decimal type. -
STRING
Encodes varint values as formatted strings.
-
-
Field Details
-
value
-
-
Constructor Details
-
VarIntHandlingMode
-
-
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
-
getValue
- Specified by:
getValuein interfaceio.debezium.config.EnumeratedValue
-
asVarIntMode
-
parse
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
Determine if the supplied value is one of the predefined options.- Parameters:
value- the configuration property value; may not be nulldefaultValue- the default value; may be null- Returns:
- the matching option, or null if no match is found and the non-null default is invalid
-