pub struct MaterializedViewMeta(/* private fields */);
Expand description
MaterializedView metadata
Implementations§
Source§impl MaterializedViewMeta
impl MaterializedViewMeta
Sourcepub fn columns_iter(&self) -> ColumnIterator ⓘ
pub fn columns_iter(&self) -> ColumnIterator ⓘ
An iterator over the columns in this materialized view
Sourcepub fn column_by_name(&self, name: &str) -> Option<ColumnMeta>
pub fn column_by_name(&self, name: &str) -> Option<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 materialized view.
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 materialized view’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 materialized view’s clustering key
Sourcepub fn clustering_key(&self, index: usize) -> Option<ColumnMeta>
pub fn clustering_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 “materialized view” metadata table.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MaterializedViewMeta
impl RefUnwindSafe for MaterializedViewMeta
impl !Send for MaterializedViewMeta
impl !Sync for MaterializedViewMeta
impl Unpin for MaterializedViewMeta
impl UnwindSafe for MaterializedViewMeta
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more