public static final class AbstractMutableVirtualTable.ColumnValues extends java.lang.Object implements java.lang.Comparable<AbstractMutableVirtualTable.ColumnValues>
Constructor and Description |
---|
ColumnValues(java.util.List<ColumnMetadata> metadata,
java.lang.Object... values)
Create a
ColumnValues for the specified set of columns. |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(AbstractMutableVirtualTable.ColumnValues o) |
static AbstractMutableVirtualTable.ColumnValues |
from(TableMetadata metadata,
ClusteringPrefix<?> prefix)
Returns the set of column values corresponding to the specified clustering prefix.
|
static AbstractMutableVirtualTable.ColumnValues |
from(TableMetadata metadata,
DecoratedKey partitionKey)
Returns the set of column values corresponding to the specified partition key.
|
java.lang.String |
name(int i)
Returns the name of the specified column
|
int |
size()
Returns the number of column values.
|
java.lang.String |
toString() |
<V> V |
value(int i)
Returns the value for the specified column
|
public ColumnValues(java.util.List<ColumnMetadata> metadata, java.lang.Object... values)
ColumnValues
for the specified set of columns.metadata
- the partition or clustering columns metadatavalues
- the partition or clustering column valuespublic static AbstractMutableVirtualTable.ColumnValues from(TableMetadata metadata, DecoratedKey partitionKey)
metadata
- the table metadatapartitionKey
- the partition keypublic static AbstractMutableVirtualTable.ColumnValues from(TableMetadata metadata, ClusteringPrefix<?> prefix)
metadata
- the table metadataprefix
- the clustering prefixpublic java.lang.String name(int i)
i
- the column indexpublic <V> V value(int i)
i
- the column indexpublic int size()
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(AbstractMutableVirtualTable.ColumnValues o)
compareTo
in interface java.lang.Comparable<AbstractMutableVirtualTable.ColumnValues>
Copyright © 2009- The Apache Software Foundation