Package io.debezium.connector.cassandra
Enum Cassandra4CommitLogReadHandlerImpl.RowType
- java.lang.Object
-
- java.lang.Enum<Cassandra4CommitLogReadHandlerImpl.RowType>
-
- io.debezium.connector.cassandra.Cassandra4CommitLogReadHandlerImpl.RowType
-
- All Implemented Interfaces:
Serializable,Comparable<Cassandra4CommitLogReadHandlerImpl.RowType>
- Enclosing class:
- Cassandra4CommitLogReadHandlerImpl
static enum Cassandra4CommitLogReadHandlerImpl.RowType extends Enum<Cassandra4CommitLogReadHandlerImpl.RowType>
A RowType represents different types ofRow-level modifications in a Cassandra table.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DELETESingle-row deleteINSERTSingle-row insertRANGE_TOMBSTONEA row-level deletion that deletes a range of keys.UNKNOWNUnknown row-level operationUPDATESingle-row update
-
Field Summary
Fields Modifier and Type Field Description (package private) static Set<Cassandra4CommitLogReadHandlerImpl.RowType>supportedRowTypes
-
Constructor Summary
Constructors Modifier Constructor Description privateRowType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Cassandra4CommitLogReadHandlerImpl.RowTypegetRowType(org.apache.cassandra.db.rows.Unfiltered unfiltered)static booleanisDelete(org.apache.cassandra.db.rows.Row row)static booleanisInsert(org.apache.cassandra.db.rows.Row row)static booleanisUpdate(org.apache.cassandra.db.rows.Row row)static booleanisValid(Cassandra4CommitLogReadHandlerImpl.RowType rowType)static Cassandra4CommitLogReadHandlerImpl.RowTypevalueOf(String name)Returns the enum constant of this type with the specified name.static Cassandra4CommitLogReadHandlerImpl.RowType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSERT
public static final Cassandra4CommitLogReadHandlerImpl.RowType INSERT
Single-row insert
-
UPDATE
public static final Cassandra4CommitLogReadHandlerImpl.RowType UPDATE
Single-row update
-
DELETE
public static final Cassandra4CommitLogReadHandlerImpl.RowType DELETE
Single-row delete
-
RANGE_TOMBSTONE
public static final Cassandra4CommitLogReadHandlerImpl.RowType RANGE_TOMBSTONE
A row-level deletion that deletes a range of keys. For example: DELETE * FROM table WHERE partition_key = 1 AND clustering_key > 0;
-
UNKNOWN
public static final Cassandra4CommitLogReadHandlerImpl.RowType UNKNOWN
Unknown row-level operation
-
-
Field Detail
-
supportedRowTypes
static final Set<Cassandra4CommitLogReadHandlerImpl.RowType> supportedRowTypes
-
-
Method Detail
-
values
public static Cassandra4CommitLogReadHandlerImpl.RowType[] 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 (Cassandra4CommitLogReadHandlerImpl.RowType c : Cassandra4CommitLogReadHandlerImpl.RowType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Cassandra4CommitLogReadHandlerImpl.RowType 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
-
getRowType
public static Cassandra4CommitLogReadHandlerImpl.RowType getRowType(org.apache.cassandra.db.rows.Unfiltered unfiltered)
-
isValid
public static boolean isValid(Cassandra4CommitLogReadHandlerImpl.RowType rowType)
-
isDelete
public static boolean isDelete(org.apache.cassandra.db.rows.Row row)
-
isInsert
public static boolean isInsert(org.apache.cassandra.db.rows.Row row)
-
isUpdate
public static boolean isUpdate(org.apache.cassandra.db.rows.Row row)
-
-