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 |
---|---|
ColumnDefinition |
column |
protected Term |
t |
Modifier | Constructor and Description |
---|---|
protected |
Operation(ColumnDefinition column,
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,
Composite prefix,
UpdateParameters params)
Execute the operation.
|
java.lang.Iterable<Function> |
getFunctions() |
boolean |
requiresRead() |
public final ColumnDefinition column
protected final Term t
protected Operation(ColumnDefinition column, Term t)
public java.lang.Iterable<Function> getFunctions()
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, Composite prefix, UpdateParameters params) throws InvalidRequestException
rowKey
- row key for the update.cf
- the column family to which to add the updates generated by this operation.prefix
- the prefix that identify the CQL3 row this operation applies to.params
- parameters of the update.InvalidRequestException
Copyright © 2015 The Apache Software Foundation