pub struct ManifestEntry { /* private fields */ }
Expand description
Entry in manifest with the iceberg spec version 2.
Implementations§
Source§impl ManifestEntry
Auto-generated by derive_getters::Getters
.
impl ManifestEntry
Auto-generated by derive_getters::Getters
.
Sourcepub fn format_version(&self) -> &FormatVersion
pub fn format_version(&self) -> &FormatVersion
Table format version
Sourcepub fn snapshot_id(&self) -> &Option<i64>
pub fn snapshot_id(&self) -> &Option<i64>
Snapshot id where the file was added, or deleted if status is 2. Inherited when null.
Sourcepub fn sequence_number(&self) -> &Option<i64>
pub fn sequence_number(&self) -> &Option<i64>
Sequence number when the file was added. Inherited when null.
Source§impl ManifestEntry
impl ManifestEntry
Sourcepub fn builder() -> ManifestEntryBuilder
pub fn builder() -> ManifestEntryBuilder
Creates a new builder for constructing a ManifestEntry.
The builder provides a fluent interface for setting all the fields of a ManifestEntry. Use this when you need to create a new manifest entry with custom values.
§Returns
- A new ManifestEntryBuilder instance with default values
Sourcepub fn status_mut(&mut self) -> &mut Status
pub fn status_mut(&mut self) -> &mut Status
Returns a mutable reference to the status field of this manifest entry.
This allows modifying the status to track additions and deletions of data files.
Sourcepub fn sequence_number_mut(&mut self) -> &mut Option<i64>
pub fn sequence_number_mut(&mut self) -> &mut Option<i64>
Returns a mutable reference to the sequence number field of this manifest entry.
The sequence number tracks the order of changes to a table. Modifying this allows updating the sequence number when new changes are made.
Sourcepub fn snapshot_id_mut(&mut self) -> &mut Option<i64>
pub fn snapshot_id_mut(&mut self) -> &mut Option<i64>
Returns a mutable reference to the snapshot ID field of this manifest entry.
The snapshot ID identifies which snapshot added or deleted this data file. Modifying this allows updating which snapshot this manifest entry belongs to.
Source§impl ManifestEntry
impl ManifestEntry
pub fn try_from_v2( value: ManifestEntryV2, schema: &Schema, partition_spec: &PartitionSpec, ) -> Result<Self, Error>
pub fn try_from_v1( value: ManifestEntryV1, schema: &Schema, partition_spec: &PartitionSpec, ) -> Result<Self, Error>
Source§impl ManifestEntry
impl ManifestEntry
Sourcepub fn schema(
partition_schema: &str,
format_version: &FormatVersion,
) -> Result<AvroSchema, Error>
pub fn schema( partition_schema: &str, format_version: &FormatVersion, ) -> Result<AvroSchema, Error>
Get schema of manifest entry.
Trait Implementations§
Source§impl Clone for ManifestEntry
impl Clone for ManifestEntry
Source§fn clone(&self) -> ManifestEntry
fn clone(&self) -> ManifestEntry
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ManifestEntry
impl Debug for ManifestEntry
Source§impl From<ManifestEntry> for ManifestEntryEnum
impl From<ManifestEntry> for ManifestEntryEnum
Source§fn from(value: ManifestEntry) -> Self
fn from(value: ManifestEntry) -> Self
Source§impl From<ManifestEntry> for ManifestEntryV1
impl From<ManifestEntry> for ManifestEntryV1
Source§fn from(v1: ManifestEntry) -> Self
fn from(v1: ManifestEntry) -> Self
Source§impl From<ManifestEntry> for ManifestEntryV2
impl From<ManifestEntry> for ManifestEntryV2
Source§fn from(value: ManifestEntry) -> Self
fn from(value: ManifestEntry) -> Self
Source§impl PartialEq for ManifestEntry
impl PartialEq for ManifestEntry
Source§impl Serialize for ManifestEntry
impl Serialize for ManifestEntry
impl StructuralPartialEq for ManifestEntry
Auto Trait Implementations§
impl Freeze for ManifestEntry
impl RefUnwindSafe for ManifestEntry
impl Send for ManifestEntry
impl Sync for ManifestEntry
impl Unpin for ManifestEntry
impl UnwindSafe for ManifestEntry
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,
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