pub struct RecordBatchCollector { /* private fields */ }Expand description
Accumulator for completed RecordBatch values.
Implementations§
Source§impl RecordBatchCollector
impl RecordBatchCollector
Sourcepub fn push(&mut self, batch: RecordBatch)
pub fn push(&mut self, batch: RecordBatch)
Add a batch to the collector.
Sourcepub fn take(&mut self) -> Vec<RecordBatch>
pub fn take(&mut self) -> Vec<RecordBatch>
Take all collected batches, leaving the collector empty.
Sourcepub fn batches(&self) -> &[RecordBatch]
pub fn batches(&self) -> &[RecordBatch]
Borrow the collected batches.
Trait Implementations§
Source§impl Debug for RecordBatchCollector
impl Debug for RecordBatchCollector
Source§impl Default for RecordBatchCollector
impl Default for RecordBatchCollector
Source§fn default() -> RecordBatchCollector
fn default() -> RecordBatchCollector
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RecordBatchCollector
impl !RefUnwindSafe for RecordBatchCollector
impl Send for RecordBatchCollector
impl Sync for RecordBatchCollector
impl Unpin for RecordBatchCollector
impl UnsafeUnpin for RecordBatchCollector
impl !UnwindSafe for RecordBatchCollector
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