Package org.apache.cassandra.cql3
Class Operation.SetValue
- java.lang.Object
-
- org.apache.cassandra.cql3.Operation.SetValue
-
- All Implemented Interfaces:
Operation.RawUpdate
- Enclosing class:
- Operation
public static class Operation.SetValue extends java.lang.Object implements Operation.RawUpdate
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisCompatibleWith(Operation.RawUpdate other)Operationprepare(TableMetadata metadata, ColumnMetadata receiver, boolean canReadExistingState)This method validates the operation (i.e.protected java.lang.StringtoString(ColumnSpecification column)
-
-
-
Constructor Detail
-
SetValue
public SetValue(Term.Raw value)
-
-
Method Detail
-
prepare
public Operation prepare(TableMetadata metadata, ColumnMetadata receiver, boolean canReadExistingState) throws InvalidRequestException
Description copied from interface:Operation.RawUpdateThis 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:
preparein interfaceOperation.RawUpdatereceiver- 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:
isCompatibleWithin interfaceOperation.RawUpdate- Returns:
- whether this operation can be applied alongside the
otherupdate (in the same UPDATE statement for the same column).
-
-