Package org.apache.cassandra.cql3
Class VariableSpecifications
- java.lang.Object
-
- org.apache.cassandra.cql3.VariableSpecifications
-
public class VariableSpecifications extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description VariableSpecifications(java.util.List<ColumnIdentifier> variableNames)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int bindIndex, ColumnSpecification spec)
static VariableSpecifications
empty()
Returns an empty instance ofVariableSpecifications
.java.util.List<ColumnSpecification>
getBindVariables()
short[]
getPartitionKeyBindVariableIndexes(TableMetadata metadata)
Returns an array with the same length as the number of partition key columns for the table corresponding to table.boolean
isEmpty()
java.lang.String
toString()
-
-
-
Constructor Detail
-
VariableSpecifications
public VariableSpecifications(java.util.List<ColumnIdentifier> variableNames)
-
-
Method Detail
-
empty
public static VariableSpecifications empty()
Returns an empty instance ofVariableSpecifications
.- Returns:
- an empty instance of
VariableSpecifications
-
isEmpty
public boolean isEmpty()
-
getBindVariables
public java.util.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 java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-