Package org.apache.cassandra.cql3
Class Operation.Substraction
- java.lang.Object
-
- org.apache.cassandra.cql3.Operation.Substraction
-
- All Implemented Interfaces:
Operation.RawUpdate
- Enclosing class:
- Operation
public static class Operation.Substraction extends java.lang.Object implements Operation.RawUpdate
-
-
Constructor Summary
Constructors Constructor Description Substraction(Term.Raw value)
-
Method Summary
All Methods Instance Methods Concrete 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.protected java.lang.String
toString(ColumnSpecification column)
-
-
-
Constructor Detail
-
Substraction
public Substraction(Term.Raw value)
-
-
Method Detail
-
prepare
public Operation prepare(TableMetadata metadata, ColumnMetadata receiver, boolean canReadExistingState) throws InvalidRequestException
Description copied from interface:Operation.RawUpdate
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.- Specified by:
prepare
in interfaceOperation.RawUpdate
receiver
- the column this operation applies to.canReadExistingState
- whether the update depends on existing state- Returns:
- the prepared update operation.
- Throws:
InvalidRequestException
-
toString
protected java.lang.String toString(ColumnSpecification column)
-
isCompatibleWith
public boolean isCompatibleWith(Operation.RawUpdate other)
- Specified by:
isCompatibleWith
in interfaceOperation.RawUpdate
- Returns:
- whether this operation can be applied alongside the
other
update (in the same UPDATE statement for the same column).
-
-