Struct iceberg_rust_spec::spec::snapshot::Snapshot
source · pub struct Snapshot {
pub snapshot_id: i64,
pub parent_snapshot_id: Option<i64>,
pub sequence_number: i64,
pub timestamp_ms: i64,
pub manifest_list: String,
pub summary: Summary,
pub schema_id: Option<i32>,
}Expand description
A snapshot represents the state of a table at some time and is used to access the complete set of data files in the table.
Fields§
§snapshot_id: i64A unique long ID
parent_snapshot_id: Option<i64>The snapshot ID of the snapshot’s parent. Omitted for any snapshot with no parent
sequence_number: i64A monotonically increasing long that tracks the order of changes to a table.
timestamp_ms: i64A timestamp when the snapshot was created, used for garbage collection and table inspection
manifest_list: StringThe location of a manifest list for this snapshot that tracks manifest files with additional metadata.
summary: SummaryA string map that summarizes the snapshot changes, including operation.
schema_id: Option<i32>ID of the table’s current schema when the snapshot was created.
Implementations§
source§impl Snapshot
impl Snapshot
pub async fn manifests<'metadata>( &self, table_metadata: &'metadata TableMetadata, object_store: Arc<dyn ObjectStore> ) -> Result<impl Iterator<Item = Result<ManifestListEntry, Error>> + 'metadata, Error>
Trait Implementations§
source§impl PartialEq for Snapshot
impl PartialEq for Snapshot
impl Eq for Snapshot
impl StructuralEq for Snapshot
impl StructuralPartialEq for Snapshot
Auto Trait Implementations§
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnwindSafe for Snapshot
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.