pub struct ParquetMetaDataOptions {
schema_descr: Option<SchemaDescPtr>,
}Expand description
Options that can be set to control what parts of the Parquet file footer
metadata will be decoded and made present in the ParquetMetaData returned
by ParquetMetaDataReader and ParquetMetaDataPushDecoder.
Fields§
§schema_descr: Option<SchemaDescPtr>Implementations§
Source§impl ParquetMetaDataOptions
impl ParquetMetaDataOptions
Sourcepub fn new() -> Self
pub fn new() -> Self
Return a new default ParquetMetaDataOptions.
Sourcepub fn schema(&self) -> Option<&SchemaDescPtr>
pub fn schema(&self) -> Option<&SchemaDescPtr>
Returns an optional SchemaDescPtr to use when decoding. If this is not None then
the schema in the footer will be skipped.
Sourcepub fn set_schema(&mut self, val: SchemaDescPtr)
pub fn set_schema(&mut self, val: SchemaDescPtr)
Provide a schema to use when decoding the metadata.
Sourcepub fn with_schema(self, val: SchemaDescPtr) -> Self
pub fn with_schema(self, val: SchemaDescPtr) -> Self
Provide a schema to use when decoding the metadata. Returns Self for chaining.
Trait Implementations§
Source§impl Clone for ParquetMetaDataOptions
impl Clone for ParquetMetaDataOptions
Source§fn clone(&self) -> ParquetMetaDataOptions
fn clone(&self) -> ParquetMetaDataOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParquetMetaDataOptions
impl Debug for ParquetMetaDataOptions
Source§impl Default for ParquetMetaDataOptions
impl Default for ParquetMetaDataOptions
Source§fn default() -> ParquetMetaDataOptions
fn default() -> ParquetMetaDataOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ParquetMetaDataOptions
impl RefUnwindSafe for ParquetMetaDataOptions
impl Send for ParquetMetaDataOptions
impl Sync for ParquetMetaDataOptions
impl Unpin for ParquetMetaDataOptions
impl UnwindSafe for ParquetMetaDataOptions
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
Mutably borrows from an owned value. Read more
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>
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 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>
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