Struct iceberg_rust::spec::snapshot::Snapshot
source · pub struct Snapshot { /* private fields */ }
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.
Implementations§
source§impl Snapshot
impl Snapshot
Auto-generated by derive_getters::Getters
.
sourcepub fn snapshot_id(&self) -> &i64
pub fn snapshot_id(&self) -> &i64
A unique long ID
sourcepub fn parent_snapshot_id(&self) -> &Option<i64>
pub fn parent_snapshot_id(&self) -> &Option<i64>
The snapshot ID of the snapshot’s parent. Omitted for any snapshot with no parent
sourcepub fn sequence_number(&self) -> &i64
pub fn sequence_number(&self) -> &i64
A monotonically increasing long that tracks the order of changes to a table.
sourcepub fn timestamp_ms(&self) -> &i64
pub fn timestamp_ms(&self) -> &i64
A timestamp when the snapshot was created, used for garbage collection and table inspection
sourcepub fn manifest_list(&self) -> &String
pub fn manifest_list(&self) -> &String
The location of a manifest list for this snapshot that tracks manifest files with additional metadata.
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<'de> Deserialize<'de> for Snapshot
impl<'de> Deserialize<'de> for Snapshot
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Snapshot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Snapshot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Snapshot
impl PartialEq for Snapshot
source§impl Serialize for Snapshot
impl Serialize for Snapshot
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for Snapshot
impl StructuralPartialEq for Snapshot
Auto Trait Implementations§
impl Freeze for Snapshot
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.