pub struct CsvBatchSourceFactory { /* private fields */ }Expand description
Bounded CSV streaming source factory. Re-consumable bounded CSV source factory.
Implementations§
Source§impl CsvBatchSourceFactory
impl CsvBatchSourceFactory
Sourcepub fn new(path: impl AsRef<Path>, options: CsvReadOptions) -> Self
pub fn new(path: impl AsRef<Path>, options: CsvReadOptions) -> Self
Construct a factory for a CSV path and read options.
Trait Implementations§
Source§impl BatchSourceFactory for CsvBatchSourceFactory
impl BatchSourceFactory for CsvBatchSourceFactory
Source§fn source_name(&self) -> &'static str
fn source_name(&self) -> &'static str
Stable source identifier for diagnostics.
Source§fn schema(&self) -> Result<SchemaRef>
fn schema(&self) -> Result<SchemaRef>
Return the source schema known before the source produces batches.
Source§fn source_limits(&self) -> Vec<SourceLimit>
fn source_limits(&self) -> Vec<SourceLimit>
Return static capability limitations visible before opening the source.
Source§fn open(&self, context: BatchOpenContext) -> Result<Box<dyn BatchSource>>
fn open(&self, context: BatchOpenContext) -> Result<Box<dyn BatchSource>>
Open an independently owned source cursor.
Source§impl Clone for CsvBatchSourceFactory
impl Clone for CsvBatchSourceFactory
Source§fn clone(&self) -> CsvBatchSourceFactory
fn clone(&self) -> CsvBatchSourceFactory
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 moreAuto Trait Implementations§
impl Freeze for CsvBatchSourceFactory
impl RefUnwindSafe for CsvBatchSourceFactory
impl Send for CsvBatchSourceFactory
impl Sync for CsvBatchSourceFactory
impl Unpin for CsvBatchSourceFactory
impl UnsafeUnpin for CsvBatchSourceFactory
impl UnwindSafe for CsvBatchSourceFactory
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