pub struct VecBatchSource { /* private fields */ }Expand description
In-memory batch source useful for callers that already own batches.
Implementations§
Source§impl VecBatchSource
impl VecBatchSource
Sourcepub fn new(batches: Vec<RecordBatch>) -> Self
pub fn new(batches: Vec<RecordBatch>) -> Self
Create a source from pre-built batches.
Trait Implementations§
Source§impl BatchSource for VecBatchSource
impl BatchSource for VecBatchSource
Source§fn next_batch(&mut self) -> Result<Option<RecordBatch>>
fn next_batch(&mut self) -> Result<Option<RecordBatch>>
Return the next record batch, or
None when exhausted.Source§impl Clone for VecBatchSource
impl Clone for VecBatchSource
Source§fn clone(&self) -> VecBatchSource
fn clone(&self) -> VecBatchSource
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 VecBatchSource
impl RefUnwindSafe for VecBatchSource
impl Send for VecBatchSource
impl Sync for VecBatchSource
impl Unpin for VecBatchSource
impl UnsafeUnpin for VecBatchSource
impl UnwindSafe for VecBatchSource
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