Struct iceberg_rust::materialized_view::MaterializedView
source · pub struct MaterializedView { /* private fields */ }
Expand description
An iceberg materialized view
Implementations§
source§impl MaterializedView
impl MaterializedView
Public interface of the table.
sourcepub fn builder() -> CreateMaterializedViewBuilder
pub fn builder() -> CreateMaterializedViewBuilder
Create a mateerialized view builder
sourcepub async fn new(
identifier: Identifier,
catalog: Arc<dyn Catalog>,
metadata: MaterializedViewMetadata,
) -> Result<Self, Error>
pub async fn new( identifier: Identifier, catalog: Arc<dyn Catalog>, metadata: MaterializedViewMetadata, ) -> Result<Self, Error>
Create a new metastore view
sourcepub fn identifier(&self) -> &Identifier
pub fn identifier(&self) -> &Identifier
Get the table identifier in the catalog. Returns None of it is a filesystem view.
sourcepub fn catalog(&self) -> Arc<dyn Catalog>
pub fn catalog(&self) -> Arc<dyn Catalog>
Get the catalog associated to the view. Returns None if the view is a filesystem view
sourcepub fn object_store(&self) -> Arc<dyn ObjectStore>
pub fn object_store(&self) -> Arc<dyn ObjectStore>
Get the object_store associated to the view
sourcepub fn current_schema(&self, branch: Option<&str>) -> Result<&Schema, Error>
pub fn current_schema(&self, branch: Option<&str>) -> Result<&Schema, Error>
Get the schema of the view
sourcepub fn metadata(&self) -> &MaterializedViewMetadata
pub fn metadata(&self) -> &MaterializedViewMetadata
Get the metadata of the view
sourcepub fn new_transaction(
&mut self,
branch: Option<&str>,
) -> MaterializedViewTransaction<'_>
pub fn new_transaction( &mut self, branch: Option<&str>, ) -> MaterializedViewTransaction<'_>
Create a new transaction for this view
sourcepub async fn storage_table(&self) -> Result<StorageTable, Error>
pub async fn storage_table(&self) -> Result<StorageTable, Error>
Get the storage table of the materialized view
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MaterializedView
impl !RefUnwindSafe for MaterializedView
impl Send for MaterializedView
impl Sync for MaterializedView
impl Unpin for MaterializedView
impl !UnwindSafe for MaterializedView
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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