pub struct ManifestMetadata {
pub schema: SchemaRef,
pub schema_id: SchemaId,
pub partition_spec: PartitionSpec,
pub format_version: FormatVersion,
pub content: ManifestContentType,
}
Expand description
Meta data of a manifest that is stored in the key-value metadata of the Avro file
Fields§
§schema: SchemaRef
The table schema at the time the manifest was written
schema_id: SchemaId
ID of the schema used to write the manifest as a string
partition_spec: PartitionSpec
The partition spec used to write the manifest
format_version: FormatVersion
Table format version number of the manifest as a string
content: ManifestContentType
Type of content files tracked by the manifest: “data” or “deletes”
Implementations§
Source§impl ManifestMetadata
impl ManifestMetadata
Sourcepub fn builder() -> ManifestMetadataBuilder<((), (), (), (), ())>
pub fn builder() -> ManifestMetadataBuilder<((), (), (), (), ())>
Create a builder for building ManifestMetadata
.
On the builder, call .schema(...)
, .schema_id(...)
, .partition_spec(...)
, .format_version(...)
, .content(...)
to set the values of the fields.
Finally, call .build()
to create the instance of ManifestMetadata
.
Source§impl ManifestMetadata
impl ManifestMetadata
Sourcepub fn parse(meta: &HashMap<String, Vec<u8>>) -> Result<Self>
pub fn parse(meta: &HashMap<String, Vec<u8>>) -> Result<Self>
Parse from metadata in avro file.
Sourcepub fn partition_spec(&self) -> &PartitionSpec
pub fn partition_spec(&self) -> &PartitionSpec
Get the partition spec used to write manifest
Sourcepub fn format_version(&self) -> &FormatVersion
pub fn format_version(&self) -> &FormatVersion
Get the table format version
Sourcepub fn content(&self) -> &ManifestContentType
pub fn content(&self) -> &ManifestContentType
Get the type of content files tracked by manifest
Trait Implementations§
Source§impl Clone for ManifestMetadata
impl Clone for ManifestMetadata
Source§fn clone(&self) -> ManifestMetadata
fn clone(&self) -> ManifestMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ManifestMetadata
impl Debug for ManifestMetadata
Source§impl PartialEq for ManifestMetadata
impl PartialEq for ManifestMetadata
impl Eq for ManifestMetadata
impl StructuralPartialEq for ManifestMetadata
Auto Trait Implementations§
impl Freeze for ManifestMetadata
impl RefUnwindSafe for ManifestMetadata
impl Send for ManifestMetadata
impl Sync for ManifestMetadata
impl Unpin for ManifestMetadata
impl UnwindSafe for ManifestMetadata
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<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