Struct iceberg_rust::spec::manifest_list::ManifestListEntry
source · pub struct ManifestListEntry {Show 16 fields
pub format_version: FormatVersion,
pub manifest_path: String,
pub manifest_length: i64,
pub partition_spec_id: i32,
pub content: Content,
pub sequence_number: i64,
pub min_sequence_number: i64,
pub added_snapshot_id: i64,
pub added_files_count: Option<i32>,
pub existing_files_count: Option<i32>,
pub deleted_files_count: Option<i32>,
pub added_rows_count: Option<i64>,
pub existing_rows_count: Option<i64>,
pub deleted_rows_count: Option<i64>,
pub partitions: Option<Vec<FieldSummary>>,
pub key_metadata: Option<ByteBuf>,
}Expand description
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.
Fields§
§format_version: FormatVersionTable format version
manifest_path: StringLocation of the manifest file
manifest_length: i64Length of the manifest file in bytes
partition_spec_id: i32ID of a partition spec used to write the manifest; must be listed in table metadata partition-specs
content: ContentThe type of files tracked by the manifest, either data or delete files; 0 for all v1 manifests
sequence_number: i64The sequence number when the manifest was added to the table; use 0 when reading v1 manifest lists
min_sequence_number: i64The minimum sequence number of all data or delete files in the manifest; use 0 when reading v1 manifest lists
added_snapshot_id: i64ID of the snapshot where the manifest file was added
added_files_count: Option<i32>Number of entries in the manifest that have status ADDED (1), when null this is assumed to be non-zero
existing_files_count: Option<i32>Number of entries in the manifest that have status EXISTING (0), when null this is assumed to be non-zero
deleted_files_count: Option<i32>Number of entries in the manifest that have status DELETED (2), when null this is assumed to be non-zero
added_rows_count: Option<i64>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<i64>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<i64>Number of rows in all of files in the manifest that have status DELETED, when null this is assumed to be non-zero
partitions: Option<Vec<FieldSummary>>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: Option<ByteBuf>Implementation-specific key metadata for encryption
Implementations§
source§impl ManifestListEntry
impl ManifestListEntry
pub fn try_from_enum( entry: ManifestListEntryEnum, table_metadata: &TableMetadata ) -> Result<ManifestListEntry, Error>
Trait Implementations§
source§impl Clone for ManifestListEntry
impl Clone for ManifestListEntry
source§fn clone(&self) -> ManifestListEntry
fn clone(&self) -> ManifestListEntry
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ManifestListEntry
impl Debug for ManifestListEntry
source§impl From<ManifestListEntry> for ManifestListEntryEnum
impl From<ManifestListEntry> for ManifestListEntryEnum
source§fn from(value: ManifestListEntry) -> ManifestListEntryEnum
fn from(value: ManifestListEntry) -> ManifestListEntryEnum
source§impl PartialEq for ManifestListEntry
impl PartialEq for ManifestListEntry
source§fn eq(&self, other: &ManifestListEntry) -> bool
fn eq(&self, other: &ManifestListEntry) -> bool
self and other values to be equal, and is used
by ==.source§impl Serialize for ManifestListEntry
impl Serialize for ManifestListEntry
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,
impl Eq for ManifestListEntry
impl StructuralPartialEq for ManifestListEntry
Auto Trait Implementations§
impl Freeze for ManifestListEntry
impl RefUnwindSafe for ManifestListEntry
impl Send for ManifestListEntry
impl Sync for ManifestListEntry
impl Unpin for ManifestListEntry
impl UnwindSafe for ManifestListEntry
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<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
key and return true if they are equal.