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
InvalidRequestException
public void addExist(Composite prefix) throws InvalidRequestException
InvalidRequestException
public void addConditions(Composite prefix, java.util.Collection<ColumnCondition> conds, QueryOptions options) throws InvalidRequestException
InvalidRequestException
public IDiskAtomFilter readFilter()
CASRequest
readFilter
in interface CASRequest
public boolean appliesTo(ColumnFamily current) throws InvalidRequestException
CASRequest
appliesTo
in interface CASRequest
InvalidRequestException
public ColumnFamily makeUpdates(ColumnFamily current) throws InvalidRequestException
CASRequest
makeUpdates
in interface CASRequest
InvalidRequestException
Copyright © 2015 The Apache Software Foundation