Interface Conditions
- All Known Implementing Classes:
ColumnConditions
public interface Conditions
Conditions that can be applied to a mutation statement.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ConditionsAn EMPTY conditionstatic final ConditionsIF EXISTS conditionstatic final ConditionsIF NOT EXISTS condition -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConditionsTo(CQL3CasRequest request, Clustering<?> clustering, QueryOptions options) Adds the conditions to the specified CAS request.voidaddFunctionsTo(List<Function> functions) Adds the functions used by the conditions to the specified list.booleanChecks if some of the conditions apply to regular columns.booleanChecks if some of the conditions apply to static columns.Returns the column definitions to which apply the conditions.booleanisEmpty()Checks if thisConditionsis empty.booleanChecks if this is a IF EXIST condition.booleanChecks if this is a IF NOT EXIST condition.
-
Field Details
-
EMPTY_CONDITION
An EMPTY condition -
IF_EXISTS_CONDITION
IF EXISTS condition -
IF_NOT_EXISTS_CONDITION
IF NOT EXISTS condition
-
-
Method Details
-
addFunctionsTo
Adds the functions used by the conditions to the specified list.- Parameters:
functions- the list to add to
-
getColumns
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
Adds the conditions to the specified CAS request.- Parameters:
request- the requestclustering- the clustering prefixoptions- the query options
-