Package io.debezium.connector.cassandra
Enum CommitLogReadHandlerImpl.PartitionType
- java.lang.Object
-
- java.lang.Enum<CommitLogReadHandlerImpl.PartitionType>
-
- io.debezium.connector.cassandra.CommitLogReadHandlerImpl.PartitionType
-
- All Implemented Interfaces:
Serializable,Comparable<CommitLogReadHandlerImpl.PartitionType>
- Enclosing class:
- CommitLogReadHandlerImpl
static enum CommitLogReadHandlerImpl.PartitionType extends Enum<CommitLogReadHandlerImpl.PartitionType>
A PartitionType represents the type of a PartitionUpdate.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COUNTERan update on a table that contains counter data typeMATERIALIZED_VIEWan update on materialized viewPARTITION_AND_CLUSTERING_KEY_ROW_DELETIONa partition-level deletion where partition key + clustering key = primary keyPARTITION_KEY_ROW_DELETIONa partition-level deletion where partition key = primary key (no clustering key)ROW_LEVEL_MODIFICATIONa row-level modificationSECONDARY_INDEXan update on secondary index
-
Field Summary
Fields Modifier and Type Field Description (package private) static Set<CommitLogReadHandlerImpl.PartitionType>supportedPartitionTypes
-
Constructor Summary
Constructors Modifier Constructor Description privatePartitionType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CommitLogReadHandlerImpl.PartitionTypegetPartitionType(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 booleanisValid(CommitLogReadHandlerImpl.PartitionType type)static CommitLogReadHandlerImpl.PartitionTypevalueOf(String name)Returns the enum constant of this type with the specified name.static CommitLogReadHandlerImpl.PartitionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PARTITION_KEY_ROW_DELETION
public static final CommitLogReadHandlerImpl.PartitionType 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 CommitLogReadHandlerImpl.PartitionType PARTITION_AND_CLUSTERING_KEY_ROW_DELETION
a partition-level deletion where partition key + clustering key = primary key
-
ROW_LEVEL_MODIFICATION
public static final CommitLogReadHandlerImpl.PartitionType ROW_LEVEL_MODIFICATION
a row-level modification
-
MATERIALIZED_VIEW
public static final CommitLogReadHandlerImpl.PartitionType MATERIALIZED_VIEW
an update on materialized view
-
SECONDARY_INDEX
public static final CommitLogReadHandlerImpl.PartitionType SECONDARY_INDEX
an update on secondary index
-
COUNTER
public static final CommitLogReadHandlerImpl.PartitionType COUNTER
an update on a table that contains counter data type
-
-
Field Detail
-
supportedPartitionTypes
static final Set<CommitLogReadHandlerImpl.PartitionType> supportedPartitionTypes
-
-
Method Detail
-
values
public static CommitLogReadHandlerImpl.PartitionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CommitLogReadHandlerImpl.PartitionType c : CommitLogReadHandlerImpl.PartitionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommitLogReadHandlerImpl.PartitionType valueOf(String name)
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 CommitLogReadHandlerImpl.PartitionType getPartitionType(org.apache.cassandra.db.partitions.PartitionUpdate pu)
-
isValid
public static boolean isValid(CommitLogReadHandlerImpl.PartitionType type)
-
hasClusteringKeys
public static boolean hasClusteringKeys(org.apache.cassandra.db.partitions.PartitionUpdate pu)
-
isPartitionDeletion
public static boolean isPartitionDeletion(org.apache.cassandra.db.partitions.PartitionUpdate pu)
-
-