Struct iceberg_rust::table::Table
source · pub struct Table { /* private fields */ }
Expand description
Iceberg table
Implementations§
source§impl Table
impl Table
sourcepub async fn files(
&self,
filter: Option<Vec<bool>>
) -> Result<Vec<ManifestEntry>>
pub async fn files( &self, filter: Option<Vec<bool>> ) -> Result<Vec<ManifestEntry>>
Get the data_files associated to a table. The files are returned based on the list of manifest files associated to that table. The included manifest files can be filtered based on an filter vector. The filter vector has the length equal to the number of manifest files and contains a true entry everywhere the manifest file is to be included in the output.
source§impl Table
impl Table
Public interface of the table.
sourcepub async fn new_metastore_table(
identifier: Identifier,
catalog: Arc<dyn Catalog>,
metadata: TableMetadata,
metadata_location: &str
) -> Result<Self>
pub async fn new_metastore_table( identifier: Identifier, catalog: Arc<dyn Catalog>, metadata: TableMetadata, metadata_location: &str ) -> Result<Self>
Create a new metastore Table
sourcepub async fn load_file_system_table(
location: &str,
object_store: &Arc<dyn ObjectStore>
) -> Result<Self>
pub async fn load_file_system_table( location: &str, object_store: &Arc<dyn ObjectStore> ) -> Result<Self>
Load a filesystem table 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 table.
sourcepub fn catalog(&self) -> Option<&Arc<dyn Catalog>>
pub fn catalog(&self) -> Option<&Arc<dyn Catalog>>
Get the catalog associated to the table. Returns None if the table is a filesystem table
sourcepub fn object_store(&self) -> Arc<dyn ObjectStore>
pub fn object_store(&self) -> Arc<dyn ObjectStore>
Get the object_store associated to the table
sourcepub fn schema(&self) -> &StructType
pub fn schema(&self) -> &StructType
Get the metadata of the table
sourcepub fn metadata(&self) -> &TableMetadata
pub fn metadata(&self) -> &TableMetadata
Get the metadata of the table
sourcepub fn metadata_location(&self) -> &str
pub fn metadata_location(&self) -> &str
Get the location of the current metadata file
sourcepub fn manifests(&self) -> &[ManifestFile]
pub fn manifests(&self) -> &[ManifestFile]
Get the location of the current metadata file
sourcepub fn new_transaction(&mut self) -> TableTransaction<'_>
pub fn new_transaction(&mut self) -> TableTransaction<'_>
Create a new transaction for this table