Package org.apache.cassandra.db.virtual
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 Summary
ConstructorsConstructorDescriptionColumnValues(List<ColumnMetadata> metadata, Object... values) Create aColumnValuesfor the specified set of columns. -
Method Summary
Modifier and TypeMethodDescriptionintfrom(TableMetadata metadata, ClusteringPrefix<?> prefix) Returns the set of column values corresponding to the specified clustering prefix.from(TableMetadata metadata, DecoratedKey partitionKey) Returns the set of column values corresponding to the specified partition key.name(int i) Returns the name of the specified columnintsize()Returns the number of column values.toString()<V> Vvalue(int i) Returns the value for the specified column
-
Constructor Details
-
ColumnValues
Create aColumnValuesfor the specified set of columns.- Parameters:
metadata- the partition or clustering columns metadatavalues- 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 metadatapartitionKey- 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 metadataprefix- the clustering prefix- Returns:
- the set of columns values corresponding to the specified clustering prefix
-
name
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
-
compareTo
- Specified by:
compareToin interfaceComparable<AbstractMutableVirtualTable.ColumnValues>
-