use self::{histogram::Histogram, online_tdigest::OnlineTdigest, statistic_set::StatisticSet};
pub mod bucket;
pub mod histogram;
pub mod online_tdigest;
pub mod statistic_set;
pub mod tdigest;
#[allow(clippy::large_enum_variant)]
#[derive(Debug)]
pub enum Aggregation {
Histogram(Histogram),
StatisticSet(StatisticSet),
TDigest(OnlineTdigest),
}
impl PartialEq for Aggregation {
fn eq(&self, other: &Self) -> bool {
match (self, other) {
(Self::Histogram(l), Self::Histogram(r)) => l == r,
(Self::StatisticSet(l), Self::StatisticSet(r)) => l == r,
_ => false,
}
}
}