Package org.apache.cassandra.cql3
Interface Operation.RawUpdate
-
- All Known Implementing Classes:
Operation.Addition
,Operation.Prepend
,Operation.SetElement
,Operation.SetField
,Operation.SetValue
,Operation.Substraction
- Enclosing class:
- Operation
public static interface Operation.RawUpdate
A parsed raw UPDATE operation. This can be one of: - Setting a value: c = v - Setting an element of a collection: c[x] = v - An addition/subtraction to a variable: c = c +/- v (where v can be a collection literal, scalar, or string) - An prepend operation: c = v + c
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isCompatibleWith(Operation.RawUpdate other)
Operation
prepare(TableMetadata metadata, ColumnMetadata receiver, boolean canReadExistingState)
This method validates the operation (i.e.
-
-
-
Method Detail
-
prepare
Operation prepare(TableMetadata metadata, ColumnMetadata receiver, boolean canReadExistingState) throws InvalidRequestException
This method validates the operation (i.e. validate it is well typed) based on the specification of the receiver of the operation. It returns an Operation which can be though as post-preparation well-typed Operation.- Parameters:
metadata
-receiver
- the column this operation applies to.canReadExistingState
- whether the update depends on existing state- Returns:
- the prepared update operation.
- Throws:
InvalidRequestException
-
isCompatibleWith
boolean isCompatibleWith(Operation.RawUpdate other)
- Returns:
- whether this operation can be applied alongside the
other
update (in the same UPDATE statement for the same column).
-
-