pub struct BatchSource<I> { /* private fields */ }Expand description
A RowSource over record batches that share a schema: the first
batch’s schema is the source’s, and a later batch with different
columns is an error.
Implementations§
Source§impl<I: Iterator<Item = RecordBatch>> BatchSource<I>
impl<I: Iterator<Item = RecordBatch>> BatchSource<I>
Sourcepub fn new(batches: impl IntoIterator<IntoIter = I>) -> Option<Self>
pub fn new(batches: impl IntoIterator<IntoIter = I>) -> Option<Self>
Read batches; None when there are none (no batch, no schema).
Trait Implementations§
Source§impl<I: Debug> Debug for BatchSource<I>
impl<I: Debug> Debug for BatchSource<I>
Source§impl<I: Iterator<Item = RecordBatch>> RowSource for BatchSource<I>
impl<I: Iterator<Item = RecordBatch>> RowSource for BatchSource<I>
Auto Trait Implementations§
impl<I> !RefUnwindSafe for BatchSource<I>
impl<I> !UnwindSafe for BatchSource<I>
impl<I> Freeze for BatchSource<I>where
I: Freeze,
impl<I> Send for BatchSource<I>where
I: Send,
impl<I> Sync for BatchSource<I>where
I: Sync,
impl<I> Unpin for BatchSource<I>where
I: Unpin,
impl<I> UnsafeUnpin for BatchSource<I>where
I: UnsafeUnpin,
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