pub struct DataAggregator<T> { /* private fields */ }Expand description
Memory-efficient data aggregator
Implementations§
Source§impl<T> DataAggregator<T>
impl<T> DataAggregator<T>
pub fn new(config: BulkProcessingConfig) -> Self
Sourcepub fn get_all_data(&mut self) -> Vec<T>
pub fn get_all_data(&mut self) -> Vec<T>
Get all aggregated data
Sourcepub fn drain_chunks(&mut self, chunk_size: usize) -> Vec<Vec<T>>
pub fn drain_chunks(&mut self, chunk_size: usize) -> Vec<Vec<T>>
Get data in chunks for memory-efficient processing
Auto Trait Implementations§
impl<T> Freeze for DataAggregator<T>
impl<T> RefUnwindSafe for DataAggregator<T>where
T: RefUnwindSafe,
impl<T> Send for DataAggregator<T>where
T: Send,
impl<T> Sync for DataAggregator<T>where
T: Sync,
impl<T> Unpin for DataAggregator<T>where
T: Unpin,
impl<T> UnwindSafe for DataAggregator<T>where
T: UnwindSafe,
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