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 async fn new_metastore_view(
identifier: Identifier,
catalog: Arc<dyn Catalog>,
metadata: ViewMetadata,
metadata_location: &str
) -> Result<Self>
pub async fn new_metastore_view( identifier: Identifier, catalog: Arc<dyn Catalog>, metadata: ViewMetadata, metadata_location: &str ) -> Result<Self>
Create a new metastore view
sourcepub async fn load_file_system_view(
location: &str,
object_store: &Arc<dyn ObjectStore>
) -> Result<Self>
pub async fn load_file_system_view( location: &str, object_store: &Arc<dyn ObjectStore> ) -> Result<Self>
Load a filesystem view from an objectstore
sourcepub fn identifier(&self) -> Option<&Identifier>
pub fn identifier(&self) -> Option<&Identifier>
Get the table identifier in the catalog. Returns None of it is a filesystem view.
sourcepub fn catalog(&self) -> Option<&Arc<dyn Catalog>>
pub fn catalog(&self) -> Option<&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 schema(&self) -> Option<&StructType>
pub fn schema(&self) -> Option<&StructType>
Get the schema of the view
sourcepub fn metadata(&self) -> &ViewMetadata
pub fn metadata(&self) -> &ViewMetadata
Get the metadata of the view
sourcepub fn metadata_location(&self) -> &str
pub fn metadata_location(&self) -> &str
Get the location of the current metadata file
sourcepub fn new_transaction(&mut self) -> ViewTransaction<'_>
pub fn new_transaction(&mut self) -> ViewTransaction<'_>
Create a new transaction for this view