public class CQL3CasConditions extends java.lang.Object implements CASConditions
Constructor and Description |
---|
CQL3CasConditions(CFMetaData cfm,
long now) |
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) |
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.
|
IDiskAtomFilter |
readFilter()
The filter to use to fetch the value to compare for the CAS.
|
public CQL3CasConditions(CFMetaData cfm, long now)
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()
CASConditions
readFilter
in interface CASConditions
public boolean appliesTo(ColumnFamily current) throws InvalidRequestException
CASConditions
appliesTo
in interface CASConditions
InvalidRequestException
Copyright © 2014 The Apache Software Foundation