Package io.debezium.connector.cassandra
Enum Class Cassandra4CommitLogReadHandlerImpl.PartitionType
java.lang.Object
java.lang.Enum<Cassandra4CommitLogReadHandlerImpl.PartitionType>
io.debezium.connector.cassandra.Cassandra4CommitLogReadHandlerImpl.PartitionType
- All Implemented Interfaces:
Serializable,Comparable<Cassandra4CommitLogReadHandlerImpl.PartitionType>,Constable
- Enclosing class:
- Cassandra4CommitLogReadHandlerImpl
static enum Cassandra4CommitLogReadHandlerImpl.PartitionType
extends Enum<Cassandra4CommitLogReadHandlerImpl.PartitionType>
A PartitionType represents the type of PartitionUpdate.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionan update on a table that contains counter data typean update on materialized viewa partition-level deletion where partition key + clustering key = primary keya partition-level deletion where partition key = primary key (no clustering key)a row-level modificationan update on secondary index -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final Set<Cassandra4CommitLogReadHandlerImpl.PartitionType> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPartitionType(org.apache.cassandra.db.partitions.PartitionUpdate pu) static booleanhasClusteringKeys(org.apache.cassandra.db.partitions.PartitionUpdate pu) static booleanisPartitionDeletion(org.apache.cassandra.db.partitions.PartitionUpdate pu) static booleanReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PARTITION_KEY_ROW_DELETION
a partition-level deletion where partition key = primary key (no clustering key) -
PARTITION_AND_CLUSTERING_KEY_ROW_DELETION
public static final Cassandra4CommitLogReadHandlerImpl.PartitionType PARTITION_AND_CLUSTERING_KEY_ROW_DELETIONa partition-level deletion where partition key + clustering key = primary key -
ROW_LEVEL_MODIFICATION
a row-level modification -
MATERIALIZED_VIEW
an update on materialized view -
SECONDARY_INDEX
an update on secondary index -
COUNTER
an update on a table that contains counter data type
-
-
Field Details
-
supportedPartitionTypes
-
-
Constructor Details
-
PartitionType
private PartitionType()
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getPartitionType
public static Cassandra4CommitLogReadHandlerImpl.PartitionType getPartitionType(org.apache.cassandra.db.partitions.PartitionUpdate pu) -
isValid
-
hasClusteringKeys
public static boolean hasClusteringKeys(org.apache.cassandra.db.partitions.PartitionUpdate pu) -
isPartitionDeletion
public static boolean isPartitionDeletion(org.apache.cassandra.db.partitions.PartitionUpdate pu)
-