public final class ColumnConditions
extends java.lang.Object
ColumnCondition
s.Modifier and Type | Class and Description |
---|---|
static class |
ColumnConditions.Builder
A
Builder for ColumnConditions . |
EMPTY_CONDITION, IF_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.
|
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.util.Collection<ColumnDefinition> |
getColumns()
Returns the column definitions to which apply the conditions.
|
java.lang.Iterable<Function> |
getFunctions()
Returns the functions used by 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 ColumnConditions.Builder |
newBuilder()
Creates a new
Builder for ColumnConditions . |
public boolean appliesToStaticColumns()
Conditions
appliesToStaticColumns
in interface Conditions
true
if some of the conditions apply to static columns, false
otherwise.public boolean appliesToRegularColumns()
Conditions
appliesToRegularColumns
in interface Conditions
true
if some of the conditions apply to regular columns, false
otherwise.public java.util.Collection<ColumnDefinition> getColumns()
Conditions
getColumns
in interface Conditions
public boolean isEmpty()
Conditions
Conditions
is empty.isEmpty
in interface Conditions
true
if this Conditions
is empty, false
otherwise.public void addConditionsTo(CQL3CasRequest request, Clustering clustering, QueryOptions options)
request
- the requestclustering
- the clustering prefixoptions
- the query optionspublic java.lang.Iterable<Function> getFunctions()
Conditions
getFunctions
in interface Conditions
public static ColumnConditions.Builder newBuilder()
Builder
for ColumnConditions
.Builder
for ColumnConditions
public boolean isIfExists()
Conditions
isIfExists
in interface Conditions
true
if this is a IF EXIST condition, false
otherwise.public boolean isIfNotExists()
Conditions
isIfNotExists
in interface Conditions
true
if this is a IF NOT EXIST condition, false
otherwise.Copyright © 2015 The Apache Software Foundation