pub struct TableMeta(/* private fields */);
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.
Sourcepub fn materialized_view_count(&self) -> usize
pub fn materialized_view_count(&self) -> usize
Gets the total number of materialized views for the table.
Sourcepub fn materialized_view(&self, index: usize) -> Option<MaterializedViewMeta>
pub fn materialized_view(&self, index: usize) -> Option<MaterializedViewMeta>
Gets the materialized view metadata for the provided index.
Sourcepub fn materialized_view_by_name(
&self,
name: &str,
) -> Option<MaterializedViewMeta>
pub fn materialized_view_by_name( &self, name: &str, ) -> Option<MaterializedViewMeta>
Gets the materialized view metadata for the provided name.