Struct iceberg_rust::view::View
source · pub struct View { /* private fields */ }
Expand description
An iceberg view
Implementations§
source§impl View
impl View
Public interface of the table.
sourcepub fn builder() -> CreateViewBuilder<Option<()>>
pub fn builder() -> CreateViewBuilder<Option<()>>
Create a view builder
sourcepub async fn new(
identifier: Identifier,
catalog: Arc<dyn Catalog>,
metadata: ViewMetadata,
) -> Result<Self, Error>
pub async fn new( identifier: Identifier, catalog: Arc<dyn Catalog>, metadata: ViewMetadata, ) -> 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) -> &ViewMetadata
pub fn metadata(&self) -> &ViewMetadata
Get the metadata of the view
sourcepub fn new_transaction(&mut self, branch: Option<&str>) -> ViewTransaction<'_>
pub fn new_transaction(&mut self, branch: Option<&str>) -> ViewTransaction<'_>
Create a new transaction for this view
Trait Implementations§
Auto Trait Implementations§
impl Freeze for View
impl !RefUnwindSafe for View
impl Send for View
impl Sync for View
impl Unpin for View
impl !UnwindSafe for View
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