OmniSciDB
a5dc49c757
|
Functions used to work with (approximate) count distinct sets. More...
#include "Descriptors/CountDistinctDescriptor.h"
#include "HyperLogLog.h"
#include "ThirdParty/robin_hood/robin_hood.h"
#include <bitset>
#include <vector>
Go to the source code of this file.
Typedefs | |
using | CountDistinctDescriptors = std::vector< CountDistinctDescriptor > |
using | CountDistinctSet = robin_hood::unordered_set< int64_t > |
Functions | |
size_t | bitmap_set_size (const int8_t *bitmap, const size_t bitmap_byte_sz) |
void | bitmap_set_union (int8_t *lhs, int8_t *rhs, const size_t bitmap_sz) |
void | partial_bitmap_union (int8_t *set_vals, const CountDistinctDescriptor &count_distinct_desc) |
int64_t | count_distinct_set_size (const int64_t set_handle, const CountDistinctDescriptor &count_distinct_desc) |
void | count_distinct_set_union (const int64_t new_set_handle, const int64_t old_set_handle, const CountDistinctDescriptor &new_count_distinct_desc, const CountDistinctDescriptor &old_count_distinct_desc) |
Functions used to work with (approximate) count distinct sets.
Definition in file CountDistinct.h.
using CountDistinctDescriptors = std::vector<CountDistinctDescriptor> |
Definition at line 34 of file CountDistinct.h.
using CountDistinctSet = robin_hood::unordered_set<int64_t> |
Definition at line 35 of file CountDistinct.h.
|
inline |
Definition at line 37 of file CountDistinct.h.
Referenced by count_distinct_set_size(), and ResultSet::getNDVEstimator().
|
inline |
Definition at line 54 of file CountDistinct.h.
Referenced by count_distinct_set_union(), and partial_bitmap_union().
|
inline |
Definition at line 75 of file CountDistinct.h.
References CountDistinctDescriptor::approximate, Bitmap, bitmap_set_size(), CountDistinctDescriptor::bitmap_sz_bits, CountDistinctDescriptor::bitmapSizeBytes(), CHECK, CHECK_GT, CountDistinctDescriptor::device_type, GPU, hll_size(), CountDistinctDescriptor::impl_type_, partial_bitmap_union(), CountDistinctDescriptor::sub_bitmap_count, and UnorderedSet.
Referenced by ResultSet::makeTargetValue(), ResultSet::ResultSetComparator< BUFFER_ITERATOR_TYPE >::materializeCountDistinctColumn(), and ResultSetStorage::reduceSingleRow().
|
inline |
Definition at line 100 of file CountDistinct.h.
References CountDistinctDescriptor::approximate, Bitmap, bitmap_set_union(), CountDistinctDescriptor::bitmap_sz_bits, CountDistinctDescriptor::bitmapPaddedSizeBytes(), CountDistinctDescriptor::bitmapSizeBytes(), CHECK, CHECK_EQ, CHECK_GE, CPU, CountDistinctDescriptor::device_type, GPU, hll_unify(), CountDistinctDescriptor::impl_type_, CountDistinctDescriptor::sub_bitmap_count, and UnorderedSet.
Referenced by count_distinct_set_union_jit_rt(), and ResultSetStorage::reduceOneCountDistinctSlot().
|
inline |
Definition at line 61 of file CountDistinct.h.
References bitmap_set_union(), CountDistinctDescriptor::bitmapPaddedSizeBytes(), CountDistinctDescriptor::bitmapSizeBytes(), CHECK_EQ, and CountDistinctDescriptor::sub_bitmap_count.
Referenced by count_distinct_set_size().