Struct cassandra_cpp::TableMeta
source · pub struct TableMeta(_);
Expand description
Table metadata
Implementations§
source§impl TableMeta
impl TableMeta
sourcepub fn field_iter(&mut self) -> FieldIterator ⓘ
pub fn field_iter(&mut self) -> FieldIterator ⓘ
returns an iterator over the fields of this table
sourcepub fn columns_iter(&self) -> ColumnIterator ⓘ
pub fn columns_iter(&self) -> ColumnIterator ⓘ
An iterator over the columns in this table
sourcepub fn column_by_name(&self, name: &str) -> ColumnMeta
pub fn column_by_name(&self, name: &str) -> ColumnMeta
Gets the column metadata for the provided column name.
sourcepub fn column_count(&self) -> usize
pub fn column_count(&self) -> usize
Gets the total number of columns for the table.
sourcepub fn column(&self, index: usize) -> ColumnMeta
pub fn column(&self, index: usize) -> ColumnMeta
Gets the column metadata for the provided index.
sourcepub fn partition_key_count(&self) -> usize
pub fn partition_key_count(&self) -> usize
Gets the number of columns for the table’s partition key.
sourcepub fn partition_key(&self, index: usize) -> Option<ColumnMeta>
pub fn partition_key(&self, index: usize) -> Option<ColumnMeta>
Gets the partition key column metadata for the provided index.
sourcepub fn clustering_key_count(&self) -> usize
pub fn clustering_key_count(&self) -> usize
Gets the number of columns for the table’s clustering key
sourcepub fn cluster_key(&self, index: usize) -> Option<ColumnMeta>
pub fn cluster_key(&self, index: usize) -> Option<ColumnMeta>
Gets the clustering key column metadata for the provided index.
sourcepub fn field_by_name(&self, name: &str) -> Option<Value>
pub fn field_by_name(&self, name: &str) -> Option<Value>
Gets a metadata field for the provided name. Metadata fields allow direct access to the column data found in the underlying “tables” metadata table.