Expand description
Materialized view functionality for Apache Iceberg
This module provides the implementation of materialized views in Apache Iceberg. Materialized views maintain a physical copy of query results that can be refreshed to stay in sync with source tables.
Key components:
MaterializedView
: The main type representing a materialized view- [
Transaction
]: Provides ACID guarantees for view operations - [
StorageTable
]: Manages the physical storage of materialized data
§Example
let mut view = MaterializedView::builder()
.name("event_counts")
.build()
.await
.unwrap();
// Perform operations in a transaction
view.new_transaction(None)
.full_refresh(vec![], refresh_state)
.unwrap()
.commit()
.await
.unwrap();
Modules§
- transaction
- Defines the Transaction type for materialized views to perform multiple [Operation]s with ACID guarantees.
Structs§
- Materialized
View - A materialized view in Apache Iceberg that maintains a physical copy of query results in a storage table. The view provides ACID guarantees and can be refreshed to stay in sync with changes in the source tables.
Enums§
- Source
Table State - Storage table states
Statics§
- STORAGE_
TABLE_ FLAG - Flag to mark a table as a storage table
- STORAGE_
TABLE_ POSTFIX - Default postfix for the storage table identifier