Class AbstractMutableVirtualTable.ColumnValues

java.lang.Object
org.apache.cassandra.db.virtual.AbstractMutableVirtualTable.ColumnValues
All Implemented Interfaces:
Comparable<AbstractMutableVirtualTable.ColumnValues>
Enclosing class:
AbstractMutableVirtualTable

public static final class AbstractMutableVirtualTable.ColumnValues extends Object implements Comparable<AbstractMutableVirtualTable.ColumnValues>
A set of partition key or clustering column values.
  • Constructor Details

    • ColumnValues

      public ColumnValues(List<ColumnMetadata> metadata, Object... values)
      Create a ColumnValues for the specified set of columns.
      Parameters:
      metadata - the partition or clustering columns metadata
      values - the partition or clustering column values
  • Method Details

    • from

      public static AbstractMutableVirtualTable.ColumnValues from(TableMetadata metadata, DecoratedKey partitionKey)
      Returns the set of column values corresponding to the specified partition key.
      Parameters:
      metadata - the table metadata
      partitionKey - the partition key
      Returns:
      the set of columns values corresponding to the specified partition key
    • from

      public static AbstractMutableVirtualTable.ColumnValues from(TableMetadata metadata, ClusteringPrefix<?> prefix)
      Returns the set of column values corresponding to the specified clustering prefix.
      Parameters:
      metadata - the table metadata
      prefix - the clustering prefix
      Returns:
      the set of columns values corresponding to the specified clustering prefix
    • name

      public String name(int i)
      Returns the name of the specified column
      Parameters:
      i - the column index
      Returns:
      the column name
    • value

      public <V> V value(int i)
      Returns the value for the specified column
      Parameters:
      i - the column index
      Returns:
      the column value
    • size

      public int size()
      Returns the number of column values.
      Returns:
      the number of column values.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(AbstractMutableVirtualTable.ColumnValues o)
      Specified by:
      compareTo in interface Comparable<AbstractMutableVirtualTable.ColumnValues>