pub struct MultiSource { /* private fields */ }Expand description
An ordered set of parquet partitions (local files and/or remote objects) with footers loaded and validated up front (see the module docs for the compatibility rules).
Implementations§
Source§impl MultiSource
impl MultiSource
Sourcepub fn from_sources(
root: String,
parts: Vec<InputSource>,
) -> Result<Self, InputError>
pub fn from_sources( root: String, parts: Vec<InputSource>, ) -> Result<Self, InputError>
Build a multi source over already-constructed parts: load every
part’s footer and validate compatibility against part 0 (see the
module docs). parts must be non-empty and already ordered.
Footer loads run with bounded concurrency
([FOOTER_LOAD_CONCURRENCY]): a remote footer is two range
requests, so hundreds of parts would otherwise serialize hundreds
of round-trips — but must not open hundreds of connections at once
either.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for MultiSource
impl RefUnwindSafe for MultiSource
impl Send for MultiSource
impl Sync for MultiSource
impl Unpin for MultiSource
impl UnsafeUnpin for MultiSource
impl UnwindSafe for MultiSource
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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