pub struct ArrowReaderBuilder { /* private fields */ }Expand description
Builder to create ArrowReader
Implementations§
Source§impl ArrowReaderBuilder
impl ArrowReaderBuilder
Sourcepub fn with_data_file_concurrency_limit(self, val: usize) -> Self
pub fn with_data_file_concurrency_limit(self, val: usize) -> Self
Sets the max number of in flight data files that are being fetched
Sourcepub fn with_batch_size(self, batch_size: usize) -> Self
pub fn with_batch_size(self, batch_size: usize) -> Self
Sets the desired size of batches in the response to something other than the default
Sourcepub fn with_row_group_filtering_enabled(
self,
row_group_filtering_enabled: bool,
) -> Self
pub fn with_row_group_filtering_enabled( self, row_group_filtering_enabled: bool, ) -> Self
Determines whether to enable row group filtering.
Sourcepub fn with_row_selection_enabled(self, row_selection_enabled: bool) -> Self
pub fn with_row_selection_enabled(self, row_selection_enabled: bool) -> Self
Determines whether to enable row selection.
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 as to the number of bytes to prefetch for parsing the Parquet metadata
This hint can help reduce the number of fetch requests. For more details see the ParquetMetaDataReader documentation.
Sourcepub fn with_range_coalesce_bytes(self, range_coalesce_bytes: u64) -> Self
pub fn with_range_coalesce_bytes(self, range_coalesce_bytes: u64) -> Self
Sets the gap threshold for merging nearby byte ranges into a single request. Ranges with gaps smaller than this value will be coalesced.
Defaults to 1 MiB, matching object_store’s OBJECT_STORE_COALESCE_DEFAULT.
Sourcepub fn with_range_fetch_concurrency(
self,
range_fetch_concurrency: usize,
) -> Self
pub fn with_range_fetch_concurrency( self, range_fetch_concurrency: usize, ) -> Self
Sets the maximum number of merged byte ranges to fetch concurrently.
Defaults to 10, matching object_store’s OBJECT_STORE_COALESCE_PARALLEL.
Sourcepub fn build(self) -> ArrowReader
pub fn build(self) -> ArrowReader
Build the ArrowReader.
Auto Trait Implementations§
impl Freeze for ArrowReaderBuilder
impl !RefUnwindSafe for ArrowReaderBuilder
impl Send for ArrowReaderBuilder
impl Sync for ArrowReaderBuilder
impl Unpin for ArrowReaderBuilder
impl !UnwindSafe for ArrowReaderBuilder
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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
§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Any.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Any.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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> ⓘ
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> ⓘ
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