Class AbstractMutableVirtualTable.ColumnValues

    • Constructor Detail

      • ColumnValues

        public ColumnValues​(java.util.List<ColumnMetadata> metadata,
                            java.lang.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 Detail

      • 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 java.lang.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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object