Struct parquet::file::serialized_reader::ReadOptionsBuilder
source · pub struct ReadOptionsBuilder { /* private fields */ }
Expand description
A builder for ReadOptions
.
For the predicates that are added to the builder,
they will be chained using ‘AND’ to filter the row groups.
Implementations§
source§impl ReadOptionsBuilder
impl ReadOptionsBuilder
sourcepub fn with_predicate(self, predicate: ReadGroupPredicate) -> Self
pub fn with_predicate(self, predicate: ReadGroupPredicate) -> Self
Add a predicate on row group metadata to the reading option, Filter only row groups that match the predicate criteria
sourcepub fn with_range(self, start: i64, end: i64) -> Self
pub fn with_range(self, start: i64, end: i64) -> Self
Add a range predicate on filtering row groups if their midpoints are within
the Closed-Open range [start..end) {x | start <= x < end}
sourcepub fn with_page_index(self) -> Self
pub fn with_page_index(self) -> Self
Enable reading the page index structures described in “Column Index Layout to Support Page Skipping”
sourcepub fn with_reader_properties(self, properties: ReaderProperties) -> Self
pub fn with_reader_properties(self, properties: ReaderProperties) -> Self
Set the ReaderProperties
configuration.
sourcepub fn build(self) -> ReadOptions
pub fn build(self) -> ReadOptions
Seal the builder and return the read options
Trait Implementations§
source§impl Default for ReadOptionsBuilder
impl Default for ReadOptionsBuilder
source§fn default() -> ReadOptionsBuilder
fn default() -> ReadOptionsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ReadOptionsBuilder
impl !RefUnwindSafe for ReadOptionsBuilder
impl !Send for ReadOptionsBuilder
impl !Sync for ReadOptionsBuilder
impl Unpin for ReadOptionsBuilder
impl !UnwindSafe for ReadOptionsBuilder
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