pub struct OrcReadOptions {
pub batch_size: Option<usize>,
pub pushdown_predicate: bool,
pub metadata_size_hint: Option<usize>,
}Expand description
Options that control how ORC files are read.
Fields§
§batch_size: Option<usize>Optional batch size override used when a scan does not specify one.
pushdown_predicate: boolEnable converting predicates into ORC stripe-level filters.
metadata_size_hint: Option<usize>Optional metadata size hint for ORC footer reads.
Implementations§
Source§impl OrcReadOptions
impl OrcReadOptions
Sourcepub fn with_batch_size(self, batch_size: usize) -> Self
pub fn with_batch_size(self, batch_size: usize) -> Self
Set a default batch size for ORC scans.
Sourcepub fn with_pushdown_predicate(self, pushdown_predicate: bool) -> Self
pub fn with_pushdown_predicate(self, pushdown_predicate: bool) -> Self
Enable or disable predicate pushdown into the ORC reader.
Sourcepub fn with_metadata_size_hint(self, metadata_size_hint: usize) -> Self
pub fn with_metadata_size_hint(self, metadata_size_hint: usize) -> Self
Provide a hint for how many bytes to read when fetching ORC metadata.
Trait Implementations§
Source§impl Clone for OrcReadOptions
impl Clone for OrcReadOptions
Source§fn clone(&self) -> OrcReadOptions
fn clone(&self) -> OrcReadOptions
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 OrcReadOptions
impl Debug for OrcReadOptions
Auto Trait Implementations§
impl Freeze for OrcReadOptions
impl RefUnwindSafe for OrcReadOptions
impl Send for OrcReadOptions
impl Sync for OrcReadOptions
impl Unpin for OrcReadOptions
impl UnwindSafe for OrcReadOptions
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