Struct streaming_algorithms::HyperLogLog[][src]

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

Methods

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

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

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

"Visit" an element.

Retrieve an estimate of the carginality of the stream.

Returns true if the cardinality estimate is 0

Merge another HyperLogLog data structure into self.

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

Intersect another HyperLogLog data structure into self.

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

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

Trait Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter. Read more

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

The type of data required to instantiate a new Self.

Instantiate a new Self with the given <Self as New>::Config.

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

Intersect.

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

Union.

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

Performs the += operation.

Auto Trait Implementations

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

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