public final class ColumnConditions
extends java.lang.Object
ColumnConditions.| 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.
|
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.util.Collection<ColumnCondition> |
columnConditions() |
java.util.Collection<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 ColumnConditions.Builder |
newBuilder()
Creates a new
Builder for ColumnConditions. |
public boolean appliesToStaticColumns()
ConditionsappliesToStaticColumns in interface Conditionstrue if some of the conditions apply to static columns, false otherwise.public boolean appliesToRegularColumns()
ConditionsappliesToRegularColumns in interface Conditionstrue if some of the conditions apply to regular columns, false otherwise.public java.util.Collection<ColumnDefinition> getColumns()
ConditionsgetColumns in interface Conditionspublic boolean isEmpty()
ConditionsConditions is empty.isEmpty in interface Conditionstrue 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 void addFunctionsTo(java.util.List<Function> functions)
ConditionsaddFunctionsTo in interface Conditionsfunctions - the list to add topublic java.util.Collection<ColumnCondition> columnConditions()
public static ColumnConditions.Builder newBuilder()
Builder for ColumnConditions.Builder for ColumnConditionspublic boolean isIfExists()
ConditionsisIfExists in interface Conditionstrue if this is a IF EXIST condition, false otherwise.public boolean isIfNotExists()
ConditionsisIfNotExists in interface Conditionstrue if this is a IF NOT EXIST condition, false otherwise.Copyright © 2018 The Apache Software Foundation