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.
|
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<ColumnMetadata> |
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 . |
java.lang.String |
toString() |
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<ColumnMetadata> 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 void addFunctionsTo(java.util.List<Function> functions)
Conditions
addFunctionsTo
in interface Conditions
functions
- the list to add topublic static ColumnConditions.Builder newBuilder()
Builder
for ColumnConditions
.Builder
for ColumnConditions
public java.lang.String toString()
toString
in class java.lang.Object
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 © 2009- The Apache Software Foundation