public class CQL3CasRequest extends java.lang.Object implements CASRequest
| Constructor and Description |
|---|
CQL3CasRequest(CFMetaData cfm,
java.nio.ByteBuffer key,
boolean isBatch) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConditions(Composite prefix,
java.util.Collection<ColumnCondition> conds,
QueryOptions options) |
void |
addExist(Composite prefix) |
void |
addNotExist(Composite prefix) |
void |
addRowUpdate(Composite prefix,
ModificationStatement stmt,
QueryOptions options,
long timestamp) |
boolean |
appliesTo(ColumnFamily current)
Returns whether the provided CF, that represents the values fetched using the
readFilter(), match the CAS conditions this object stands for.
|
ColumnFamily |
makeUpdates(ColumnFamily current)
The updates to perform of a CAS success.
|
IDiskAtomFilter |
readFilter()
The filter to use to fetch the value to compare for the CAS.
|
public CQL3CasRequest(CFMetaData cfm, java.nio.ByteBuffer key, boolean isBatch)
public void addRowUpdate(Composite prefix, ModificationStatement stmt, QueryOptions options, long timestamp)
public void addNotExist(Composite prefix) throws InvalidRequestException
InvalidRequestExceptionpublic void addExist(Composite prefix) throws InvalidRequestException
InvalidRequestExceptionpublic void addConditions(Composite prefix, java.util.Collection<ColumnCondition> conds, QueryOptions options) throws InvalidRequestException
InvalidRequestExceptionpublic IDiskAtomFilter readFilter()
CASRequestreadFilter in interface CASRequestpublic boolean appliesTo(ColumnFamily current) throws InvalidRequestException
CASRequestappliesTo in interface CASRequestInvalidRequestExceptionpublic ColumnFamily makeUpdates(ColumnFamily current) throws InvalidRequestException
CASRequestmakeUpdates in interface CASRequestInvalidRequestExceptionCopyright © 2018 The Apache Software Foundation