Thrill  0.1
HyperLogLogRegisters< p > Class Template Reference

Detailed Description

template<size_t p>
class thrill::core::HyperLogLogRegisters< p >

Definition at line 34 of file hyperloglog.hpp.

#include <hyperloglog.hpp>

Public Member Functions

 HyperLogLogRegisters ()
 
template<typename ValueType >
void insert (const ValueType &value)
 
void insert_hash (const uint64_t &hash_value)
 
void mergeDense (const HyperLogLogRegisters< p > &b)
 
void mergeSparse ()
 
HyperLogLogRegisters operator+ (const HyperLogLogRegisters< p > &registers2) const
 
double result ()
 calculate count estimation result adjusted for bias More...
 
bool shouldConvertToDense ()
 
bool shouldMerge ()
 
size_t size () const
 
void toDense ()
 

Private Attributes

std::vector< HyperLogLogSparseRegisterdeltaSet_
 
std::vector< uint8_t > entries_
 
HyperLogLogRegisterFormat format_
 
unsigned sparse_size_ = 0
 
std::vector< uint8_t > sparseListBuffer_
 

Constructor & Destructor Documentation

◆ HyperLogLogRegisters()

Definition at line 37 of file hyperloglog.hpp.

Member Function Documentation

◆ insert()

void insert ( const ValueType &  value)
inline

Definition at line 47 of file hyperloglog.hpp.

References tlx::siphash().

◆ insert_hash()

void insert_hash ( const uint64_t &  hash_value)

Definition at line 1715 of file hyperloglog.cpp.

References tlx::clz(), thrill::core::DENSE, and thrill::core::SPARSE.

◆ mergeDense()

◆ mergeSparse()

void mergeSparse ( )

◆ operator+()

◆ result()

double result ( )

calculate count estimation result adjusted for bias

Definition at line 1771 of file hyperloglog.cpp.

References tlx::digest_detail::H(), and thrill::core::SPARSE.

◆ shouldConvertToDense()

bool shouldConvertToDense ( )

Definition at line 1700 of file hyperloglog.cpp.

Referenced by HyperLogLogRegisters< p >::operator+().

◆ shouldMerge()

bool shouldMerge ( )

Definition at line 1708 of file hyperloglog.cpp.

◆ size()

◆ toDense()

void toDense ( )

Member Data Documentation

◆ deltaSet_

◆ entries_

◆ format_

◆ sparse_size_

unsigned sparse_size_ = 0
private

Definition at line 70 of file hyperloglog.hpp.

◆ sparseListBuffer_


The documentation for this class was generated from the following files: