pub struct FetchConfig {
pub chunk_size: usize,
pub strategy: ConcurrencyStrategy,
}Available on crate feature
polars-io only.Fields§
§chunk_size: usize§strategy: ConcurrencyStrategyImplementations§
Source§impl FetchConfig
impl FetchConfig
Sourcepub fn random_access() -> FetchConfig
pub fn random_access() -> FetchConfig
Use for cloud-based file formats that are randomly accessible, i.e. individual row groups (or record batches) and/or individual columns can be fetched directly using the metadata as an input. Example: Parquet, IPC with internal extensions.
The chunk_size should be small enough to enable smooth operation of the bytes-based in-flight concurrency controller.
Sourcepub fn streaming() -> FetchConfig
pub fn streaming() -> FetchConfig
Use for cloud-based file formats that have a sequential layout, i.e. the file bytes must be fetched and parsed sequentially. The pipeline is responsible for managing back-pressure and rate-limiting. Example: CSV.
Sourcepub fn legacy() -> FetchConfig
pub fn legacy() -> FetchConfig
Used for legacy fetch. @TODO: Deprecate over time.
Trait Implementations§
Source§impl Clone for FetchConfig
impl Clone for FetchConfig
Source§fn clone(&self) -> FetchConfig
fn clone(&self) -> FetchConfig
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 FetchConfig
impl Debug for FetchConfig
impl Copy for FetchConfig
Auto Trait Implementations§
impl Freeze for FetchConfig
impl RefUnwindSafe for FetchConfig
impl Send for FetchConfig
impl Sync for FetchConfig
impl Unpin for FetchConfig
impl UnsafeUnpin for FetchConfig
impl UnwindSafe for FetchConfig
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,
§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> ⓘ
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