public interface Conditions
Modifier and Type | Field and Description |
---|---|
static Conditions |
EMPTY_CONDITION
An EMPTY condition
|
static Conditions |
IF_EXISTS_CONDITION
IF EXISTS condition
|
static Conditions |
IF_NOT_EXISTS_CONDITION
IF NOT EXISTS condition
|
Modifier and Type | Method and Description |
---|---|
void |
addConditionsTo(CQL3CasRequest request,
Clustering clustering,
QueryOptions options)
Adds the conditions to the specified CAS request.
|
void |
addFunctionsTo(java.util.List<Function> functions)
Adds the functions used by the conditions to the specified list.
|
boolean |
appliesToRegularColumns()
Checks if some of the conditions apply to regular columns.
|
boolean |
appliesToStaticColumns()
Checks if some of the conditions apply to static columns.
|
java.lang.Iterable<ColumnDefinition> |
getColumns()
Returns the column definitions to which apply the conditions.
|
boolean |
isEmpty()
Checks if this
Conditions is empty. |
boolean |
isIfExists()
Checks if this is a IF EXIST condition.
|
boolean |
isIfNotExists()
Checks if this is a IF NOT EXIST condition.
|
static final Conditions EMPTY_CONDITION
static final Conditions IF_EXISTS_CONDITION
static final Conditions IF_NOT_EXISTS_CONDITION
void addFunctionsTo(java.util.List<Function> functions)
functions
- the list to add tojava.lang.Iterable<ColumnDefinition> getColumns()
boolean isEmpty()
Conditions
is empty.true
if this Conditions
is empty, false
otherwise.boolean isIfExists()
true
if this is a IF EXIST condition, false
otherwise.boolean isIfNotExists()
true
if this is a IF NOT EXIST condition, false
otherwise.boolean appliesToStaticColumns()
true
if some of the conditions apply to static columns, false
otherwise.boolean appliesToRegularColumns()
true
if some of the conditions apply to regular columns, false
otherwise.void addConditionsTo(CQL3CasRequest request, Clustering clustering, QueryOptions options)
request
- the requestclustering
- the clustering prefixoptions
- the query optionsCopyright © 2017 The Apache Software Foundation