iceberg::spec

Struct ManifestFile

Source
pub struct ManifestFile {
Show 15 fields pub manifest_path: String, pub manifest_length: i64, pub partition_spec_id: i32, pub content: ManifestContentType, pub sequence_number: i64, pub min_sequence_number: i64, pub added_snapshot_id: i64, pub added_files_count: Option<u32>, pub existing_files_count: Option<u32>, pub deleted_files_count: Option<u32>, pub added_rows_count: Option<u64>, pub existing_rows_count: Option<u64>, pub deleted_rows_count: Option<u64>, pub partitions: Vec<FieldSummary>, pub key_metadata: Vec<u8>,
}
Expand description

Entry in a manifest list.

Fields§

§manifest_path: String

field: 500

Location of the manifest file

§manifest_length: i64

field: 501

Length of the manifest file in bytes

§partition_spec_id: i32

field: 502

ID of a partition spec used to write the manifest; must be listed in table metadata partition-specs

§content: ManifestContentType

field: 517

The type of files tracked by the manifest, either data or delete files; 0 for all v1 manifests

§sequence_number: i64

field: 515

The sequence number when the manifest was added to the table; use 0 when reading v1 manifest lists

§min_sequence_number: i64

field: 516

The minimum data sequence number of all live data or delete files in the manifest; use 0 when reading v1 manifest lists

§added_snapshot_id: i64

field: 503

ID of the snapshot where the manifest file was added

§added_files_count: Option<u32>

field: 504

Number of entries in the manifest that have status ADDED, when null this is assumed to be non-zero

§existing_files_count: Option<u32>

field: 505

Number of entries in the manifest that have status EXISTING (0), when null this is assumed to be non-zero

§deleted_files_count: Option<u32>

field: 506

Number of entries in the manifest that have status DELETED (2), when null this is assumed to be non-zero

§added_rows_count: Option<u64>

field: 512

Number of rows in all of files in the manifest that have status ADDED, when null this is assumed to be non-zero

§existing_rows_count: Option<u64>

field: 513

Number of rows in all of files in the manifest that have status EXISTING, when null this is assumed to be non-zero

§deleted_rows_count: Option<u64>

field: 514

Number of rows in all of files in the manifest that have status DELETED, when null this is assumed to be non-zero

§partitions: Vec<FieldSummary>

field: 507 element_field: 508

A list of field summaries for each partition field in the spec. Each field in the list corresponds to a field in the manifest file’s partition spec.

§key_metadata: Vec<u8>

field: 519

Implementation-specific key metadata for encryption

Implementations§

Source§

impl ManifestFile

Source

pub fn has_added_files(&self) -> bool

Checks if the manifest file has any added files.

Source

pub fn has_deleted_files(&self) -> bool

Checks whether this manifest contains entries with DELETED status.

Source

pub fn has_existing_files(&self) -> bool

Checks if the manifest file has any existed files.

Source§

impl ManifestFile

Source

pub async fn load_manifest(&self, file_io: &FileIO) -> Result<Manifest>

Load Manifest.

This method will also initialize inherited values of [ManifestEntry], such as sequence_number.

Trait Implementations§

Source§

impl Clone for ManifestFile

Source§

fn clone(&self) -> ManifestFile

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ManifestFile

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for ManifestFile

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for ManifestFile

Source§

fn eq(&self, other: &ManifestFile) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for ManifestFile

Source§

impl StructuralPartialEq for ManifestFile

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSend for T
where T: Send,

§

impl<T> MaybeSendSync for T