[][src]Struct amadeus_streaming::HyperLogLog

pub struct HyperLogLog<V: ?Sized> { /* fields omitted */ }

Implementations

impl<V: ?Sized> HyperLogLog<V> where
    V: Hash
[src]

pub fn new(error_rate: f64) -> Self[src]

Create an empty HyperLogLog data structure with the specified error tolerance.

pub fn new_from(hll: &Self) -> Self[src]

Create an empty HyperLogLog data structure, copying the error tolerance from hll.

pub fn push(&mut self, value: &V)[src]

"Visit" an element.

pub fn len(&self) -> f64[src]

Retrieve an estimate of the carginality of the stream.

pub fn is_empty(&self) -> bool[src]

Returns true if empty.

pub fn union(&mut self, src: &Self)[src]

Merge another HyperLogLog data structure into self.

This is the same as an HLL approximating cardinality of the union of two multisets.

pub fn intersect(&mut self, src: &Self)[src]

Intersect another HyperLogLog data structure into self.

Note: This is different to an HLL approximating cardinality of the intersection of two multisets.

pub fn clear(&mut self)[src]

Clears the HyperLogLog data structure, as if it was new.

Trait Implementations

impl<'a, V: ?Sized> AddAssign<&'a HyperLogLog<V>> for HyperLogLog<V> where
    V: Hash
[src]

impl<'a, V: ?Sized> AddAssign<&'a V> for HyperLogLog<V> where
    V: Hash
[src]

impl<V: ?Sized> Clone for HyperLogLog<V>[src]

impl<V: ?Sized> Debug for HyperLogLog<V> where
    V: Hash
[src]

impl<'de, V: ?Sized> Deserialize<'de> for HyperLogLog<V>[src]

impl<V: ?Sized> Intersect for HyperLogLog<V> where
    V: Hash
[src]

impl<V: ?Sized> IntersectPlusUnionIsPlus for HyperLogLog<V>[src]

impl<V: ?Sized> New for HyperLogLog<V> where
    V: Hash
[src]

type Config = f64

The type of data required to instantiate a new Self.

impl<V: ?Sized> Serialize for HyperLogLog<V>[src]

impl<'a, V: ?Sized> UnionAssign<&'a HyperLogLog<V>> for HyperLogLog<V> where
    V: Hash
[src]

Auto Trait Implementations

impl<V: ?Sized> RefUnwindSafe for HyperLogLog<V>

impl<V: ?Sized> Send for HyperLogLog<V>

impl<V: ?Sized> Sync for HyperLogLog<V>

impl<V: ?Sized> Unpin for HyperLogLog<V>

impl<V: ?Sized> UnwindSafe for HyperLogLog<V>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,