pub struct ManifestEntry {
pub status: ManifestStatus,
pub snapshot_id: Option<i64>,
pub sequence_number: Option<i64>,
pub file_sequence_number: Option<i64>,
pub data_file: DataFile,
}Expand description
A manifest is an immutable Avro file that lists data files or delete files, along with each file’s partition data tuple, metrics, and tracking information.
Fields§
§status: ManifestStatusfield: 0
Used to track additions and deletions.
snapshot_id: Option<i64>field id: 1
Snapshot id where the file was added, or deleted if status is 2. Inherited when null.
sequence_number: Option<i64>field id: 3
Data sequence number of the file. Inherited when null and status is 1 (added).
file_sequence_number: Option<i64>field id: 4
File sequence number indicating when the file was added. Inherited when null and status is 1 (added).
data_file: DataFilefield id: 2
File path, partition tuple, metrics, …
Implementations§
Source§impl ManifestEntry
impl ManifestEntry
Sourcepub fn builder() -> ManifestEntryBuilder<((), (), (), (), ())>
pub fn builder() -> ManifestEntryBuilder<((), (), (), (), ())>
Create a builder for building ManifestEntry.
On the builder, call .status(...), .snapshot_id(...)(optional), .sequence_number(...)(optional), .file_sequence_number(...)(optional), .data_file(...) to set the values of the fields.
Finally, call .build() to create the instance of ManifestEntry.
Source§impl ManifestEntry
impl ManifestEntry
Sourcepub fn status(&self) -> ManifestStatus
pub fn status(&self) -> ManifestStatus
Status of this manifest entry
Sourcepub fn content_type(&self) -> DataContentType
pub fn content_type(&self) -> DataContentType
Content type of this manifest entry.
Sourcepub fn file_format(&self) -> DataFileFormat
pub fn file_format(&self) -> DataFileFormat
File format of this manifest entry.
Sourcepub fn record_count(&self) -> u64
pub fn record_count(&self) -> u64
Data file record count of the manifest entry.
Sourcepub fn snapshot_id(&self) -> Option<i64>
pub fn snapshot_id(&self) -> Option<i64>
Snapshot id
Sourcepub fn sequence_number(&self) -> Option<i64>
pub fn sequence_number(&self) -> Option<i64>
Data sequence number.
Sourcepub fn file_size_in_bytes(&self) -> u64
pub fn file_size_in_bytes(&self) -> u64
File size in bytes.
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 PartialEq for ManifestEntry
impl PartialEq for ManifestEntry
impl Eq 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,
§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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§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