pub struct FilesSource { /* private fields */ }Expand description
Local file source. One or many files, decoded by the supplied FormatRead.
Implementations§
Source§impl FilesSource
impl FilesSource
Sourcepub fn new(paths: GlobOrPaths, format: Arc<dyn FormatRead>) -> Self
pub fn new(paths: GlobOrPaths, format: Arc<dyn FormatRead>) -> Self
Build a source. No I/O performed.
Trait Implementations§
Source§impl Clone for FilesSource
impl Clone for FilesSource
Source§fn clone(&self) -> FilesSource
fn clone(&self) -> FilesSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Source for FilesSource
impl Source for FilesSource
Source§fn stream_partitions<'async_trait>(
self: Box<Self>,
) -> Pin<Box<dyn Future<Output = Result<Vec<BatchStream>, TransferredError>> + Send + 'async_trait>>where
Self: 'async_trait,
fn stream_partitions<'async_trait>(
self: Box<Self>,
) -> Pin<Box<dyn Future<Output = Result<Vec<BatchStream>, TransferredError>> + Send + 'async_trait>>where
Self: 'async_trait,
One stream per file. Globs expanded here; empty results error.
Auto Trait Implementations§
impl !RefUnwindSafe for FilesSource
impl !UnwindSafe for FilesSource
impl Freeze for FilesSource
impl Send for FilesSource
impl Sync for FilesSource
impl Unpin for FilesSource
impl UnsafeUnpin for FilesSource
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