pub enum TabularMetadataRef<'a> {
Table(&'a TableMetadata),
View(&'a ViewMetadata),
MaterializedView(&'a MaterializedViewMetadata),
}
Expand description
A reference wrapper for different types of tabular metadata
This enum provides a way to reference the different types of tabular metadata (tables, views, materialized views) without taking ownership. It implements common functionality for accessing metadata properties across all tabular types.
Variants§
Table(&'a TableMetadata)
Table metadata
View(&'a ViewMetadata)
View metadata
MaterializedView(&'a MaterializedViewMetadata)
Materialized view metadata
Implementations§
Source§impl TabularMetadataRef<'_>
impl TabularMetadataRef<'_>
Sourcepub fn uuid(&self) -> &Uuid
pub fn uuid(&self) -> &Uuid
Returns the UUID of the tabular object
§Returns
- A reference to the UUID that uniquely identifies this table, view, or materialized view
Sourcepub fn location(&self) -> &str
pub fn location(&self) -> &str
Returns the storage location of the tabular object
§Returns
- A string reference to the base storage location (e.g. S3 path, file path) where this table, view, or materialized view’s data is stored
Sourcepub fn sequence_number(&self) -> i64
pub fn sequence_number(&self) -> i64
Returns the current sequence number or version ID of the tabular object
§Returns
- For tables: The last sequence number used to create a snapshot
- For views and materialized views: The current version ID
Trait Implementations§
Source§impl<'a> From<&'a GeneralViewMetadata<FullIdentifier>> for TabularMetadataRef<'a>
impl<'a> From<&'a GeneralViewMetadata<FullIdentifier>> for TabularMetadataRef<'a>
Source§fn from(value: &'a MaterializedViewMetadata) -> Self
fn from(value: &'a MaterializedViewMetadata) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a GeneralViewMetadata<Option<()>>> for TabularMetadataRef<'a>
impl<'a> From<&'a GeneralViewMetadata<Option<()>>> for TabularMetadataRef<'a>
Source§fn from(value: &'a ViewMetadata) -> Self
fn from(value: &'a ViewMetadata) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a TableMetadata> for TabularMetadataRef<'a>
impl<'a> From<&'a TableMetadata> for TabularMetadataRef<'a>
Source§fn from(value: &'a TableMetadata) -> Self
fn from(value: &'a TableMetadata) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a TabularMetadata> for TabularMetadataRef<'a>
impl<'a> From<&'a TabularMetadata> for TabularMetadataRef<'a>
Source§fn from(value: &'a TabularMetadata) -> Self
fn from(value: &'a TabularMetadata) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for TabularMetadataRef<'a>
impl<'a> RefUnwindSafe for TabularMetadataRef<'a>
impl<'a> Send for TabularMetadataRef<'a>
impl<'a> Sync for TabularMetadataRef<'a>
impl<'a> Unpin for TabularMetadataRef<'a>
impl<'a> UnwindSafe for TabularMetadataRef<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more