Package org.apache.cassandra.cql3
Class Operations
- java.lang.Object
-
- org.apache.cassandra.cql3.Operations
-
-
Constructor Summary
Constructors Constructor Description Operations(StatementType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Operation operation)Adds the specifiedOperationto this set of operations.voidaddFunctionsTo(java.util.List<Function> functions)booleanappliesToRegularColumns()Checks if some of the operations apply to regular columns.booleanappliesToStaticColumns()Checks if some of the operations apply to static columns.booleanisEmpty()Checks if thisOperationsis empty.java.util.Iterator<Operation>iterator()java.util.List<Operation>regularOperations()Returns the operation on regular columns.booleanrequiresRead()Checks if one of the operations requires a read.java.util.List<Operation>staticOperations()Returns the operation on static columns.
-
-
-
Constructor Detail
-
Operations
public Operations(StatementType type)
-
-
Method Detail
-
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
public java.util.List<Operation> regularOperations()
Returns the operation on regular columns.- Returns:
- the operation on regular columns
-
staticOperations
public java.util.List<Operation> staticOperations()
Returns the operation on static columns.- Returns:
- the operation on static columns
-
add
public void add(Operation operation)
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
public java.util.Iterator<Operation> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<Operation>
-
addFunctionsTo
public void addFunctionsTo(java.util.List<Function> functions)
-
-