pub struct ManifestList { /* private fields */ }Expand description
Snapshots are embedded in table metadata, but the list of manifests for a snapshot are stored in a separate manifest list file.
A new manifest list is written for each attempt to commit a snapshot because the list of manifests always changes to produce a new snapshot. When a manifest list is written, the (optimistic) sequence number of the snapshot is written for all new manifest files tracked by the list.
A manifest list includes summary metadata that can be used to avoid scanning all of the manifests in a snapshot when planning a table scan. This includes the number of added, existing, and deleted files, and a summary of values for each field of the partition spec used to write the manifest.
Implementations§
Source§impl ManifestList
impl ManifestList
Sourcepub fn parse_with_version(
bs: &[u8],
version: FormatVersion,
) -> Result<ManifestList>
pub fn parse_with_version( bs: &[u8], version: FormatVersion, ) -> Result<ManifestList>
Parse manifest list from bytes.
Sourcepub fn entries(&self) -> &[ManifestFile]
pub fn entries(&self) -> &[ManifestFile]
Get the entries in the manifest list.
Sourcepub fn consume_entries(self) -> impl IntoIterator<Item = ManifestFile>
pub fn consume_entries(self) -> impl IntoIterator<Item = ManifestFile>
Take ownership of the entries in the manifest list, consuming it
Trait Implementations§
Source§impl Clone for ManifestList
impl Clone for ManifestList
Source§fn clone(&self) -> ManifestList
fn clone(&self) -> ManifestList
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ManifestList
impl Debug for ManifestList
Source§impl PartialEq for ManifestList
impl PartialEq for ManifestList
impl StructuralPartialEq for ManifestList
Auto Trait Implementations§
impl Freeze for ManifestList
impl RefUnwindSafe for ManifestList
impl Send for ManifestList
impl Sync for ManifestList
impl Unpin for ManifestList
impl UnwindSafe for ManifestList
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Any.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Any.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more