Class ColumnConditions
java.lang.Object
org.apache.cassandra.cql3.conditions.ColumnConditions
- All Implemented Interfaces:
Conditions
A set of
ColumnConditions.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classABuilderforColumnConditions. -
Field Summary
Fields inherited from interface org.apache.cassandra.cql3.conditions.Conditions
EMPTY_CONDITION, IF_EXISTS_CONDITION, IF_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.static ColumnConditions.BuilderCreates a newBuilderforColumnConditions.toString()
-
Method Details
-
appliesToStaticColumns
public boolean appliesToStaticColumns()Description copied from interface:ConditionsChecks if some of the conditions apply to static columns.- Specified by:
appliesToStaticColumnsin interfaceConditions- Returns:
trueif some of the conditions apply to static columns,falseotherwise.
-
appliesToRegularColumns
public boolean appliesToRegularColumns()Description copied from interface:ConditionsChecks if some of the conditions apply to regular columns.- Specified by:
appliesToRegularColumnsin interfaceConditions- Returns:
trueif some of the conditions apply to regular columns,falseotherwise.
-
getColumns
Description copied from interface:ConditionsReturns the column definitions to which apply the conditions.- Specified by:
getColumnsin interfaceConditions- Returns:
- the column definitions to which apply the conditions.
-
isEmpty
public boolean isEmpty()Description copied from interface:ConditionsChecks if thisConditionsis empty.- Specified by:
isEmptyin interfaceConditions- Returns:
trueif thisConditionsis empty,falseotherwise.
-
addConditionsTo
Adds the conditions to the specified CAS request.- Parameters:
request- the requestclustering- the clustering prefixoptions- the query options
-
addFunctionsTo
Description copied from interface:ConditionsAdds the functions used by the conditions to the specified list.- Specified by:
addFunctionsToin interfaceConditions- Parameters:
functions- the list to add to
-
newBuilder
Creates a newBuilderforColumnConditions.- Returns:
- a new
BuilderforColumnConditions
-
toString
-
isIfExists
public boolean isIfExists()Description copied from interface:ConditionsChecks if this is a IF EXIST condition.- Specified by:
isIfExistsin interfaceConditions- Returns:
trueif this is a IF EXIST condition,falseotherwise.
-
isIfNotExists
public boolean isIfNotExists()Description copied from interface:ConditionsChecks if this is a IF NOT EXIST condition.- Specified by:
isIfNotExistsin interfaceConditions- Returns:
trueif this is a IF NOT EXIST condition,falseotherwise.
-