public abstract class Operation
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Operation.Addition |
static class |
Operation.ColumnDeletion |
static class |
Operation.ElementDeletion |
static class |
Operation.Prepend |
static interface |
Operation.RawDeletion
A parsed raw DELETE operation.
|
static interface |
Operation.RawUpdate
A parsed raw UPDATE operation.
|
static class |
Operation.SetElement |
static class |
Operation.SetValue |
static class |
Operation.Substraction |
Modifier and Type | Field and Description |
---|---|
ColumnIdentifier |
columnName |
protected Term |
t |
Modifier | Constructor and Description |
---|---|
protected |
Operation(ColumnIdentifier columnName,
Term t) |
Modifier and Type | Method and Description |
---|---|
void |
collectMarkerSpecification(VariableSpecifications boundNames)
Collects the column specification for the bind variables of this operation.
|
abstract void |
execute(java.nio.ByteBuffer rowKey,
ColumnFamily cf,
ColumnNameBuilder namePrefix,
UpdateParameters params)
Execute the operation.
|
boolean |
requiresRead() |
public final ColumnIdentifier columnName
protected final Term t
protected Operation(ColumnIdentifier columnName, Term t)
public boolean requiresRead()
public void collectMarkerSpecification(VariableSpecifications boundNames)
boundNames
- the list of column specification where to collect the
bind variables of this term in.public abstract void execute(java.nio.ByteBuffer rowKey, ColumnFamily cf, ColumnNameBuilder namePrefix, UpdateParameters params) throws InvalidRequestException
rowKey
- row key for the update.cf
- the column family to which to add the updates generated by this operation.namePrefix
- the prefix that identify the CQL3 row this operation applies to (callers should not reuse
the ColumnNameBuilder they pass here).params
- parameters of the update.InvalidRequestException
Copyright © 2013 The Apache Software Foundation