Class VariableSpecifications

java.lang.Object
org.apache.cassandra.cql3.VariableSpecifications

public class VariableSpecifications extends Object
  • Constructor Details

  • Method Details

    • empty

      public static VariableSpecifications empty()
      Returns an empty instance of VariableSpecifications.
      Returns:
      an empty instance of VariableSpecifications
    • isEmpty

      public boolean isEmpty()
    • getBindVariables

      public List<ColumnSpecification> getBindVariables()
    • getPartitionKeyBindVariableIndexes

      public short[] getPartitionKeyBindVariableIndexes(TableMetadata metadata)
      Returns an array with the same length as the number of partition key columns for the table corresponding to table. Each short in the array represents the bind index of the marker that holds the value for that partition key column. If there are no bind markers for any of the partition key columns, null is returned. Callers of this method should ensure that all statements operate on the same table.
    • add

      public void add(int bindIndex, ColumnSpecification spec)
    • toString

      public String toString()
      Overrides:
      toString in class Object