pub struct ReaderProperties {
codec_options: CodecOptions,
read_bloom_filter: bool,
read_page_stats: bool,
}Expand description
Configuration settings for reading parquet files.
All properties are immutable and Send + Sync.
Use ReaderPropertiesBuilder to assemble these properties.
§Example
use parquet::file::properties::ReaderProperties;
// Create properties with default configuration.
let props = ReaderProperties::builder().build();
// Use properties builder to set certain options and assemble the configuration.
let props = ReaderProperties::builder()
.set_backward_compatible_lz4(false)
.build();Fields§
§codec_options: CodecOptions§read_bloom_filter: bool§read_page_stats: boolImplementations§
Source§impl ReaderProperties
impl ReaderProperties
Sourcepub fn builder() -> ReaderPropertiesBuilder
pub fn builder() -> ReaderPropertiesBuilder
Returns builder for reader properties with default values.
Sourcepub(crate) fn codec_options(&self) -> &CodecOptions
pub(crate) fn codec_options(&self) -> &CodecOptions
Returns codec options.
Sourcepub(crate) fn read_bloom_filter(&self) -> bool
pub(crate) fn read_bloom_filter(&self) -> bool
Returns whether to read bloom filter
Sourcepub(crate) fn read_page_stats(&self) -> bool
pub(crate) fn read_page_stats(&self) -> bool
Returns whether to read page level statistics
Auto Trait Implementations§
impl Freeze for ReaderProperties
impl RefUnwindSafe for ReaderProperties
impl Send for ReaderProperties
impl Sync for ReaderProperties
impl Unpin for ReaderProperties
impl UnwindSafe for ReaderProperties
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> 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