pub struct StatsCollector { /* private fields */ }Expand description
Collects statistics (count, sum, min, max) for a column.
Implementations§
Trait Implementations§
Source§impl Clone for StatsCollector
impl Clone for StatsCollector
Source§fn clone(&self) -> StatsCollector
fn clone(&self) -> StatsCollector
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Collector for StatsCollector
impl Collector for StatsCollector
Source§type Fruit = CollectorStats
type Fruit = CollectorStats
Final result type after merging all partitions.
Source§type PartitionCollector = StatsPartitionCollector
type PartitionCollector = StatsPartitionCollector
Partition-local collector type.
Source§fn for_partition(&self, _partition_id: usize) -> Self::PartitionCollector
fn for_partition(&self, _partition_id: usize) -> Self::PartitionCollector
Creates a collector for a single partition (called per-thread).
Source§fn merge(&self, fruits: Vec<CollectorStats>) -> CollectorStats
fn merge(&self, fruits: Vec<CollectorStats>) -> CollectorStats
Merges results from all partitions (called once at the end).
Auto Trait Implementations§
impl Freeze for StatsCollector
impl RefUnwindSafe for StatsCollector
impl Send for StatsCollector
impl Sync for StatsCollector
impl Unpin for StatsCollector
impl UnsafeUnpin for StatsCollector
impl UnwindSafe for StatsCollector
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more