pub enum DynByteSource {
Buffer(BufferByteSource),
File(FileByteSource),
Cloud(ObjectStoreByteSource),
}Available on crate feature
async only.Expand description
Dynamic dispatch to async functions.
Variants§
Buffer(BufferByteSource)
File(FileByteSource)
Cloud(ObjectStoreByteSource)
Available on crate feature
cloud only.Implementations§
Source§impl DynByteSource
impl DynByteSource
pub fn variant_name(&self) -> &str
Sourcepub fn with_fetch_config(&self, config: FetchConfig) -> Option<Self>
pub fn with_fetch_config(&self, config: FetchConfig) -> Option<Self>
A clone of this object store source with a different fetch configuration. The clone
shares the underlying store, and this source keeps its configuration. Returns None for
non-object store sources.
pub fn is_cloud(&self) -> bool
pub fn chunk_size(&self) -> Option<usize>
pub fn concurrency_strategy(&self) -> Option<ConcurrencyStrategy>
Trait Implementations§
Source§impl ByteSource for DynByteSource
impl ByteSource for DynByteSource
async fn get_size(&self) -> PolarsResult<usize>
Source§async fn get_suffix(&self, n: usize) -> PolarsResult<(Buffer<u8>, usize)>
async fn get_suffix(&self, n: usize) -> PolarsResult<(Buffer<u8>, usize)>
Fetch the last
n bytes and the total size of the source, in a single request. Returns
fewer than n bytes if the source is smaller than n.Source§impl Default for DynByteSource
impl Default for DynByteSource
Source§impl From<Buffer<u8>> for DynByteSource
impl From<Buffer<u8>> for DynByteSource
Source§impl From<BufferByteSource> for DynByteSource
impl From<BufferByteSource> for DynByteSource
Source§fn from(value: BufferByteSource) -> Self
fn from(value: BufferByteSource) -> Self
Converts to this type from the input type.
Source§impl From<FileByteSource> for DynByteSource
impl From<FileByteSource> for DynByteSource
Source§fn from(value: FileByteSource) -> Self
fn from(value: FileByteSource) -> Self
Converts to this type from the input type.
Source§impl From<ObjectStoreByteSource> for DynByteSource
Available on crate feature cloud only.
impl From<ObjectStoreByteSource> for DynByteSource
Available on crate feature
cloud only.Source§fn from(value: ObjectStoreByteSource) -> Self
fn from(value: ObjectStoreByteSource) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for DynByteSource
impl !UnwindSafe for DynByteSource
impl Freeze for DynByteSource
impl Send for DynByteSource
impl Sync for DynByteSource
impl Unpin for DynByteSource
impl UnsafeUnpin for DynByteSource
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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