pub struct CardinalityAggregation { /* private fields */ }Expand description
A single-value metrics aggregation that calculates an approximate count of distinct values.
Implementations
sourceimpl CardinalityAggregation
impl CardinalityAggregation
sourcepub fn precision_threshold(self, precision_threshold: u16) -> Self
pub fn precision_threshold(self, precision_threshold: u16) -> Self
The precision_threshold options allows to trade memory for accuracy, and defines a unique count below
which counts are expected to be close to accurate. Above this value, counts might become a bit more fuzzy.
The maximum supported value is 40000, thresholds above this number will have the same effect as a threshold
of 40000. The default value is 3000
Trait Implementations
sourceimpl Clone for CardinalityAggregation
impl Clone for CardinalityAggregation
sourcefn clone(&self) -> CardinalityAggregation
fn clone(&self) -> CardinalityAggregation
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for CardinalityAggregation
impl Debug for CardinalityAggregation
sourceimpl From<CardinalityAggregation> for Aggregation
impl From<CardinalityAggregation> for Aggregation
sourcefn from(q: CardinalityAggregation) -> Self
fn from(q: CardinalityAggregation) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<CardinalityAggregation> for CardinalityAggregation
impl PartialEq<CardinalityAggregation> for CardinalityAggregation
sourcefn eq(&self, other: &CardinalityAggregation) -> bool
fn eq(&self, other: &CardinalityAggregation) -> bool
sourceimpl Serialize for CardinalityAggregation
impl Serialize for CardinalityAggregation
impl StructuralPartialEq for CardinalityAggregation
Auto Trait Implementations
impl RefUnwindSafe for CardinalityAggregation
impl Send for CardinalityAggregation
impl Sync for CardinalityAggregation
impl Unpin for CardinalityAggregation
impl UnwindSafe for CardinalityAggregation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more