Package io.debezium.connector.cassandra
Enum CommitLogReadHandlerImpl.RowType
- java.lang.Object
-
- java.lang.Enum<CommitLogReadHandlerImpl.RowType>
-
- io.debezium.connector.cassandra.CommitLogReadHandlerImpl.RowType
-
- All Implemented Interfaces:
Serializable,Comparable<CommitLogReadHandlerImpl.RowType>
- Enclosing class:
- CommitLogReadHandlerImpl
static enum CommitLogReadHandlerImpl.RowType extends Enum<CommitLogReadHandlerImpl.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<CommitLogReadHandlerImpl.RowType>supportedRowTypes
-
Constructor Summary
Constructors Modifier Constructor Description privateRowType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CommitLogReadHandlerImpl.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(CommitLogReadHandlerImpl.RowType rowType)static CommitLogReadHandlerImpl.RowTypevalueOf(String name)Returns the enum constant of this type with the specified name.static CommitLogReadHandlerImpl.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 CommitLogReadHandlerImpl.RowType INSERT
Single-row insert
-
UPDATE
public static final CommitLogReadHandlerImpl.RowType UPDATE
Single-row update
-
DELETE
public static final CommitLogReadHandlerImpl.RowType DELETE
Single-row delete
-
RANGE_TOMBSTONE
public static final CommitLogReadHandlerImpl.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 CommitLogReadHandlerImpl.RowType UNKNOWN
Unknown row-level operation
-
-
Field Detail
-
supportedRowTypes
static final Set<CommitLogReadHandlerImpl.RowType> supportedRowTypes
-
-
Method Detail
-
values
public static CommitLogReadHandlerImpl.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 (CommitLogReadHandlerImpl.RowType c : CommitLogReadHandlerImpl.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 CommitLogReadHandlerImpl.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 CommitLogReadHandlerImpl.RowType getRowType(org.apache.cassandra.db.rows.Unfiltered unfiltered)
-
isValid
public static boolean isValid(CommitLogReadHandlerImpl.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)
-
-