datasketches-cpp
|
High performance C++ implementation of Compressed Probabilistic Counting (CPC) Union. More...
#include <cpc_union.hpp>
Public Member Functions | |
cpc_union_alloc (uint8_t lg_k=cpc_constants::DEFAULT_LG_K, uint64_t seed=DEFAULT_SEED, const A &allocator=A()) | |
Creates an instance of the union given the lg_k parameter and hash seed. More... | |
cpc_union_alloc (const cpc_union_alloc< A > &other) | |
Copy constructor. More... | |
cpc_union_alloc (cpc_union_alloc< A > &&other) noexcept | |
Move constructor. More... | |
cpc_union_alloc< A > & | operator= (const cpc_union_alloc< A > &other) |
Copy assignment. More... | |
cpc_union_alloc< A > & | operator= (cpc_union_alloc< A > &&other) noexcept |
Move assignment. More... | |
void | update (const cpc_sketch_alloc< A > &sketch) |
This method is to update the union with a given sketch (lvalue) More... | |
void | update (cpc_sketch_alloc< A > &&sketch) |
This method is to update the union with a given sketch (rvalue) More... | |
cpc_sketch_alloc< A > | get_result () const |
This method produces a copy of the current state of the union as a sketch. More... | |
High performance C++ implementation of Compressed Probabilistic Counting (CPC) Union.
author Kevin Lang author Alexander Saydakov
|
explicit |
Creates an instance of the union given the lg_k parameter and hash seed.
lg_k | base 2 logarithm of the number of bins in the sketch |
seed | for hash function |
allocator | instance of an allocator |
cpc_union_alloc | ( | const cpc_union_alloc< A > & | other | ) |
Copy constructor.
other | union to be copied |
|
noexcept |
Move constructor.
other | union to be moved |
cpc_union_alloc< A > & operator= | ( | const cpc_union_alloc< A > & | other | ) |
Copy assignment.
other | union to be copied |
|
noexcept |
Move assignment.
other | union to be moved |
void update | ( | const cpc_sketch_alloc< A > & | sketch | ) |
This method is to update the union with a given sketch (lvalue)
sketch | to update the union with |
void update | ( | cpc_sketch_alloc< A > && | sketch | ) |
This method is to update the union with a given sketch (rvalue)
sketch | to update the union with |
cpc_sketch_alloc< A > get_result |
This method produces a copy of the current state of the union as a sketch.