|
virtual Allocator | get_allocator () const |
|
virtual bool | is_empty () const |
|
virtual bool | is_ordered () const |
|
virtual uint64_t | get_theta64 () const |
|
virtual uint32_t | get_num_retained () const |
|
virtual uint16_t | get_seed_hash () const |
|
uint8_t | get_lg_k () const |
|
resize_factor | get_rf () const |
|
template<typename FwdUpdate > |
void | update (const std::string &key, FwdUpdate &&value) |
| Update this sketch with a given string.
|
|
template<typename FwdUpdate > |
void | update (uint64_t key, FwdUpdate &&value) |
| Update this sketch with a given unsigned 64-bit integer.
|
|
template<typename FwdUpdate > |
void | update (int64_t key, FwdUpdate &&value) |
| Update this sketch with a given signed 64-bit integer.
|
|
template<typename FwdUpdate > |
void | update (uint32_t key, FwdUpdate &&value) |
| Update this sketch with a given unsigned 32-bit integer.
|
|
template<typename FwdUpdate > |
void | update (int32_t key, FwdUpdate &&value) |
| Update this sketch with a given signed 32-bit integer.
|
|
template<typename FwdUpdate > |
void | update (uint16_t key, FwdUpdate &&value) |
| Update this sketch with a given unsigned 16-bit integer.
|
|
template<typename FwdUpdate > |
void | update (int16_t key, FwdUpdate &&value) |
| Update this sketch with a given signed 16-bit integer.
|
|
template<typename FwdUpdate > |
void | update (uint8_t key, FwdUpdate &&value) |
| Update this sketch with a given unsigned 8-bit integer.
|
|
template<typename FwdUpdate > |
void | update (int8_t key, FwdUpdate &&value) |
| Update this sketch with a given signed 8-bit integer.
|
|
template<typename FwdUpdate > |
void | update (double key, FwdUpdate &&value) |
| Update this sketch with a given double-precision floating point value.
|
|
template<typename FwdUpdate > |
void | update (float key, FwdUpdate &&value) |
| Update this sketch with a given floating point value.
|
|
template<typename FwdUpdate > |
void | update (const void *key, size_t length, FwdUpdate &&value) |
| Update this sketch with given data of any type.
|
|
void | trim () |
| Remove retained entries in excess of the nominal size k (if any)
|
|
void | reset () |
| Reset the sketch to the initial empty state.
|
|
compact_tuple_sketch< Summary, Allocator > | compact (bool ordered=true) const |
| Converts this sketch to a compact sketch (ordered or unordered).
|
|
template<typename Predicate > |
compact_tuple_sketch< Summary, Allocator > | filter (const Predicate &predicate) const |
| Produces a Compact Tuple sketch from this sketch by applying a given predicate to each entry.
|
|
virtual iterator | begin () |
| Iterator over entries in this sketch.
|
|
virtual iterator | end () |
| Iterator pointing past the valid range.
|
|
virtual const_iterator | begin () const |
| Const iterator over entries in this sketch.
|
|
virtual const_iterator | end () const |
| Const iterator pointing past the valid range.
|
|
double | get_estimate () const |
|
double | get_lower_bound (uint8_t num_std_devs, uint32_t num_subset_entries) const |
| Returns the approximate lower error bound given a number of standard deviations over an arbitrary number of items stored in the sketch.
|
|
double | get_lower_bound (uint8_t num_std_devs) const |
| Returns the approximate lower error bound given a number of standard deviations.
|
|
double | get_upper_bound (uint8_t num_std_devs, uint32_t num_subset_entries) const |
| Returns the approximate upper error bound given a number of standard deviations over an arbitrary number of items stored in the sketch.
|
|
double | get_upper_bound (uint8_t num_std_devs) const |
| Returns the approximate upper error bound given a number of standard deviations.
|
|
bool | is_estimation_mode () const |
|
double | get_theta () const |
|
string< Allocator > | to_string (bool print_items=false) const |
| Provides a human-readable summary of this sketch as a string.
|
|
template<typename Summary, typename Update = Summary, typename Policy = default_tuple_update_policy<Summary, Update>, typename Allocator = std::allocator<Summary>>
class datasketches::update_tuple_sketch< Summary, Update, Policy, Allocator >
Update Tuple sketch.
The purpose of this class is to build a Tuple sketch from input data via the update() methods. There is no constructor. Use builder instead.
template<typename Summary , typename Update = Summary, typename Policy = default_tuple_update_policy<Summary, Update>, typename Allocator = std::allocator<Summary>>
template<typename FwdUpdate >
void update |
( |
const void * |
key, |
|
|
size_t |
length, |
|
|
FwdUpdate && |
value |
|
) |
| |
Update this sketch with given data of any type.
This is a "universal" update that covers all cases above, but may produce different hashes. Be very careful to hash input values consistently using the same approach both over time and on different platforms and while passing sketches between C++ environment and Java environment. Otherwise two sketches that should represent overlapping sets will be disjoint For instance, for signed 32-bit values call update(int32_t) method above, which does widening conversion to int64_t, if compatibility with Java is expected
- Parameters
-
key | pointer to the data |
length | of the data in bytes |
value | to update the sketch with |