pub struct HyperLogLog { /* private fields */ }Expand description
HyperLogLog sketch (distinct-count).
Implementations§
Source§impl HyperLogLog
impl HyperLogLog
Sourcepub fn default_params() -> Self
pub fn default_params() -> Self
Default planner-sized HLL (p=12, 4096 registers).
Sourcepub fn cardinality(&self) -> u64
pub fn cardinality(&self) -> u64
Estimated cardinality.
Sourcepub fn merge(&mut self, other: &Self) -> Result<(), StatsError>
pub fn merge(&mut self, other: &Self) -> Result<(), StatsError>
Register-wise max (merge / “bitwise OR” of leading-zero ranks).
Trait Implementations§
Source§impl Clone for HyperLogLog
impl Clone for HyperLogLog
Source§fn clone(&self) -> HyperLogLog
fn clone(&self) -> HyperLogLog
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 Debug for HyperLogLog
impl Debug for HyperLogLog
Source§impl PartialEq for HyperLogLog
impl PartialEq for HyperLogLog
impl Eq for HyperLogLog
impl StructuralPartialEq for HyperLogLog
Auto Trait Implementations§
impl Freeze for HyperLogLog
impl RefUnwindSafe for HyperLogLog
impl Send for HyperLogLog
impl Sync for HyperLogLog
impl Unpin for HyperLogLog
impl UnsafeUnpin for HyperLogLog
impl UnwindSafe for HyperLogLog
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