Class Operations

java.lang.Object
org.apache.cassandra.cql3.Operations
All Implemented Interfaces:
Iterable<Operation>

public final class Operations extends Object implements Iterable<Operation>
A set of Operations.
  • Constructor Details

  • Method Details

    • appliesToStaticColumns

      public boolean appliesToStaticColumns()
      Checks if some of the operations apply to static columns.
      Returns:
      true if some of the operations apply to static columns, false otherwise.
    • appliesToRegularColumns

      public boolean appliesToRegularColumns()
      Checks if some of the operations apply to regular columns.
      Returns:
      true if some of the operations apply to regular columns, false otherwise.
    • regularOperations

      public List<Operation> regularOperations()
      Returns the operation on regular columns.
      Returns:
      the operation on regular columns
    • staticOperations

      public List<Operation> staticOperations()
      Returns the operation on static columns.
      Returns:
      the operation on static columns
    • add

      public void add(Operation operation)
      Adds the specified Operation to this set of operations.
      Parameters:
      operation - the operation to add
    • requiresRead

      public boolean requiresRead()
      Checks if one of the operations requires a read.
      Returns:
      true if one of the operations requires a read, false otherwise.
    • isEmpty

      public boolean isEmpty()
      Checks if this Operations is empty.
      Returns:
      true if this Operations is empty, false otherwise.
    • iterator

      public Iterator<Operation> iterator()
      Specified by:
      iterator in interface Iterable<Operation>
    • addFunctionsTo

      public void addFunctionsTo(List<Function> functions)