class Cassandra::ColumnContainer
This class contains all the logic needed for manipulating columns of an object.
Inherits
Object
Classes
Direct Known Subclasses
Methods
name
Returns name of this column-container
id
Returns the id of this object in Cassandra.
keyspace
Returns the keyspace that this column-container belongs to.
options
Returns collection of configuration options of this column-container.
partition_key
Returns ordered list of column-names that make up the partition-key.
clustering_columns
Returns ordered list of column-names that make up the clustering-columns.
primary_key
Returns primary key of this column-container. It’s the combination of
partition_key
and clustering_columns
.
- Note
- This composition produces a flat list, so it will not be possible for the caller to distinguish partition-key columns from clustering-columns.
has_column?
(name)Returns whether this column-container has a given column
column
(name)Returns a column or nil
each_column
(&block) aliased as: columnsYield or enumerate each column defined in this column-container