Package io.debezium.connector.cassandra
Enum Cassandra3CommitLogReadHandlerImpl.PartitionType
java.lang.Object
java.lang.Enum<Cassandra3CommitLogReadHandlerImpl.PartitionType>
io.debezium.connector.cassandra.Cassandra3CommitLogReadHandlerImpl.PartitionType
- All Implemented Interfaces:
Serializable,Comparable<Cassandra3CommitLogReadHandlerImpl.PartitionType>
- Enclosing class:
- Cassandra3CommitLogReadHandlerImpl
static enum Cassandra3CommitLogReadHandlerImpl.PartitionType
extends Enum<Cassandra3CommitLogReadHandlerImpl.PartitionType>
A PartitionType represents the type of PartitionUpdate.
-
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<Cassandra3CommitLogReadHandlerImpl.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 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
-
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 Cassandra3CommitLogReadHandlerImpl.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 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
-
getPartitionType
public static Cassandra3CommitLogReadHandlerImpl.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)
-