Interface Conditions
-
- All Known Implementing Classes:
ColumnConditions
public interface ConditionsConditions that can be applied to a mutation statement.
-
-
Field Summary
Fields Modifier and Type Field Description static ConditionsEMPTY_CONDITIONAn EMPTY conditionstatic ConditionsIF_EXISTS_CONDITIONIF EXISTS conditionstatic ConditionsIF_NOT_EXISTS_CONDITIONIF NOT EXISTS condition
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddConditionsTo(CQL3CasRequest request, Clustering<?> clustering, QueryOptions options)Adds the conditions to the specified CAS request.voidaddFunctionsTo(java.util.List<Function> functions)Adds the functions used by the conditions to the specified list.booleanappliesToRegularColumns()Checks if some of the conditions apply to regular columns.booleanappliesToStaticColumns()Checks if some of the conditions apply to static columns.java.lang.Iterable<ColumnMetadata>getColumns()Returns the column definitions to which apply the conditions.booleanisEmpty()Checks if thisConditionsis empty.booleanisIfExists()Checks if this is a IF EXIST condition.booleanisIfNotExists()Checks if this is a IF NOT EXIST condition.
-
-
-
Field Detail
-
EMPTY_CONDITION
static final Conditions EMPTY_CONDITION
An EMPTY condition
-
IF_EXISTS_CONDITION
static final Conditions IF_EXISTS_CONDITION
IF EXISTS condition
-
IF_NOT_EXISTS_CONDITION
static final Conditions IF_NOT_EXISTS_CONDITION
IF NOT EXISTS condition
-
-
Method Detail
-
addFunctionsTo
void addFunctionsTo(java.util.List<Function> functions)
Adds the functions used by the conditions to the specified list.- Parameters:
functions- the list to add to
-
getColumns
java.lang.Iterable<ColumnMetadata> getColumns()
Returns the column definitions to which apply the conditions.- Returns:
- the column definitions to which apply the conditions.
-
isEmpty
boolean isEmpty()
Checks if thisConditionsis empty.- Returns:
trueif thisConditionsis empty,falseotherwise.
-
isIfExists
boolean isIfExists()
Checks if this is a IF EXIST condition.- Returns:
trueif this is a IF EXIST condition,falseotherwise.
-
isIfNotExists
boolean isIfNotExists()
Checks if this is a IF NOT EXIST condition.- Returns:
trueif this is a IF NOT EXIST condition,falseotherwise.
-
appliesToStaticColumns
boolean appliesToStaticColumns()
Checks if some of the conditions apply to static columns.- Returns:
trueif some of the conditions apply to static columns,falseotherwise.
-
appliesToRegularColumns
boolean appliesToRegularColumns()
Checks if some of the conditions apply to regular columns.- Returns:
trueif some of the conditions apply to regular columns,falseotherwise.
-
addConditionsTo
void addConditionsTo(CQL3CasRequest request, Clustering<?> clustering, QueryOptions options)
Adds the conditions to the specified CAS request.- Parameters:
request- the requestclustering- the clustering prefixoptions- the query options
-
-