Package org.apache.cassandra.cql3
Class Lists.SetterByIndex
- java.lang.Object
-
- org.apache.cassandra.cql3.Operation
-
- org.apache.cassandra.cql3.Lists.SetterByIndex
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.cassandra.cql3.Operation
Operation.Addition, Operation.ColumnDeletion, Operation.ElementDeletion, Operation.FieldDeletion, Operation.Prepend, Operation.RawDeletion, Operation.RawUpdate, Operation.SetElement, Operation.SetField, Operation.SetValue, Operation.Substraction
-
-
Constructor Summary
Constructors Constructor Description SetterByIndex(ColumnMetadata column, Term idx, Term t)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
collectMarkerSpecification(VariableSpecifications boundNames)
Collects the column specification for the bind variables of this operation.void
execute(DecoratedKey partitionKey, UpdateParameters params)
Execute the operation.boolean
requiresRead()
-
Methods inherited from class org.apache.cassandra.cql3.Operation
addFunctionsTo
-
-
-
-
Constructor Detail
-
SetterByIndex
public SetterByIndex(ColumnMetadata column, Term idx, Term t)
-
-
Method Detail
-
requiresRead
public boolean requiresRead()
- Overrides:
requiresRead
in classOperation
- Returns:
- whether the operation requires a read of the previous value to be executed (only lists setterByIdx, discard and discardByIdx requires that).
-
collectMarkerSpecification
public void collectMarkerSpecification(VariableSpecifications boundNames)
Description copied from class:Operation
Collects the column specification for the bind variables of this operation.- Overrides:
collectMarkerSpecification
in classOperation
- Parameters:
boundNames
- the list of column specification where to collect the bind variables of this term in.
-
execute
public void execute(DecoratedKey partitionKey, UpdateParameters params) throws InvalidRequestException
Description copied from class:Operation
Execute the operation.- Specified by:
execute
in classOperation
- Parameters:
partitionKey
- partition key for the update.params
- parameters of the update.- Throws:
InvalidRequestException
-
-