public class CQL3CasRequest extends java.lang.Object implements CASRequest
| Modifier and Type | Field and Description |
|---|---|
CFMetaData |
cfm |
boolean |
isBatch |
DecoratedKey |
key |
| Constructor and Description |
|---|
CQL3CasRequest(CFMetaData cfm,
DecoratedKey key,
boolean isBatch,
PartitionColumns conditionColumns,
boolean updatesRegularRows,
boolean updatesStaticRow) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConditions(Clustering clustering,
java.util.Collection<ColumnCondition> conds,
QueryOptions options) |
void |
addExist(Clustering clustering) |
void |
addNotExist(Clustering clustering) |
void |
addRowUpdate(CBuilder cbuilder,
ModificationStatement stmt,
QueryOptions options,
long timestamp) |
boolean |
appliesTo(FilteredPartition current)
Returns whether the provided CF, that represents the values fetched using the
readFilter(), match the CAS conditions this object stands for.
|
PartitionUpdate |
makeUpdates(FilteredPartition current)
The updates to perform of a CAS success.
|
SinglePartitionReadCommand |
readCommand(int nowInSec)
The command to use to fetch the value to compare for the CAS.
|
public final CFMetaData cfm
public final DecoratedKey key
public final boolean isBatch
public CQL3CasRequest(CFMetaData cfm, DecoratedKey key, boolean isBatch, PartitionColumns conditionColumns, boolean updatesRegularRows, boolean updatesStaticRow)
public void addRowUpdate(CBuilder cbuilder, ModificationStatement stmt, QueryOptions options, long timestamp)
public void addNotExist(Clustering clustering) throws InvalidRequestException
InvalidRequestExceptionpublic void addExist(Clustering clustering) throws InvalidRequestException
InvalidRequestExceptionpublic void addConditions(Clustering clustering, java.util.Collection<ColumnCondition> conds, QueryOptions options) throws InvalidRequestException
InvalidRequestExceptionpublic SinglePartitionReadCommand readCommand(int nowInSec)
CASRequestreadCommand in interface CASRequestpublic boolean appliesTo(FilteredPartition current) throws InvalidRequestException
CASRequestappliesTo in interface CASRequestInvalidRequestExceptionpublic PartitionUpdate makeUpdates(FilteredPartition current) throws InvalidRequestException
CASRequestmakeUpdates in interface CASRequestInvalidRequestExceptionCopyright © 2015 The Apache Software Foundation