Package org.apache.cassandra.cql3
Class Operations
java.lang.Object
org.apache.cassandra.cql3.Operations
A set of
Operations.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the specifiedOperationto this set of operations.voidaddFunctionsTo(List<Function> functions) booleanChecks if some of the operations apply to regular columns.booleanChecks if some of the operations apply to static columns.booleanisEmpty()Checks if thisOperationsis empty.iterator()Returns the operation on regular columns.booleanChecks if one of the operations requires a read.Returns the operation on static columns.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Operations
-
-
Method Details
-
appliesToStaticColumns
public boolean appliesToStaticColumns()Checks if some of the operations apply to static columns.- Returns:
trueif some of the operations apply to static columns,falseotherwise.
-
appliesToRegularColumns
public boolean appliesToRegularColumns()Checks if some of the operations apply to regular columns.- Returns:
trueif some of the operations apply to regular columns,falseotherwise.
-
regularOperations
Returns the operation on regular columns.- Returns:
- the operation on regular columns
-
staticOperations
Returns the operation on static columns.- Returns:
- the operation on static columns
-
add
Adds the specifiedOperationto this set of operations.- Parameters:
operation- the operation to add
-
requiresRead
public boolean requiresRead()Checks if one of the operations requires a read.- Returns:
trueif one of the operations requires a read,falseotherwise.
-
isEmpty
public boolean isEmpty()Checks if thisOperationsis empty.- Returns:
trueif thisOperationsis empty,falseotherwise.
-
iterator
-
addFunctionsTo
-