pub struct ParquetReadOptions {
pub columns: Option<Vec<String>>,
pub row_groups: Option<Vec<usize>>,
pub batch_size: usize,
pub predicate: Option<Expr>,
}Expand description
I/O option types. Options for reading Parquet files.
Fields§
§columns: Option<Vec<String>>Optional column projection (names).
row_groups: Option<Vec<usize>>Optional row group selection.
batch_size: usizeRecord batch size for the Parquet reader.
predicate: Option<Expr>Optional predicate expression to apply (may be pushed down in the future).
Implementations§
Source§impl ParquetReadOptions
impl ParquetReadOptions
Sourcepub fn with_columns<I, S>(self, columns: I) -> Self
pub fn with_columns<I, S>(self, columns: I) -> Self
Set a column projection by name.
Sourcepub fn with_row_groups<I>(self, row_groups: I) -> Selfwhere
I: IntoIterator<Item = usize>,
pub fn with_row_groups<I>(self, row_groups: I) -> Selfwhere
I: IntoIterator<Item = usize>,
Set row group indices to read.
Sourcepub fn with_batch_size(self, batch_size: usize) -> Self
pub fn with_batch_size(self, batch_size: usize) -> Self
Set record batch size.
Sourcepub fn with_predicate(self, predicate: Expr) -> Self
pub fn with_predicate(self, predicate: Expr) -> Self
Set a predicate to apply.
Trait Implementations§
Source§impl Clone for ParquetReadOptions
impl Clone for ParquetReadOptions
Source§fn clone(&self) -> ParquetReadOptions
fn clone(&self) -> ParquetReadOptions
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 ParquetReadOptions
impl Debug for ParquetReadOptions
Auto Trait Implementations§
impl Freeze for ParquetReadOptions
impl RefUnwindSafe for ParquetReadOptions
impl Send for ParquetReadOptions
impl Sync for ParquetReadOptions
impl Unpin for ParquetReadOptions
impl UnwindSafe for ParquetReadOptions
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