20 #ifndef _COUPONHASHSET_HPP_
21 #define _COUPONHASHSET_HPP_
23 #include "CouponList.hpp"
28 class CouponHashSet :
public CouponList<A> {
30 static CouponHashSet* newSet(
const void* bytes,
size_t len,
const A& allocator);
31 static CouponHashSet* newSet(std::istream& is,
const A& allocator);
32 CouponHashSet(uint8_t lgConfigK,
target_hll_type tgtHllType,
const A& allocator);
35 virtual ~CouponHashSet() =
default;
36 virtual std::function<void(HllSketchImpl<A>*)> get_deleter()
const;
39 using vector_int = std::vector<uint32_t, typename std::allocator_traits<A>::template rebind_alloc<uint32_t>>;
41 virtual CouponHashSet* copy()
const;
44 virtual HllSketchImpl<A>* couponUpdate(uint32_t coupon);
46 virtual uint32_t getMemDataStart()
const;
47 virtual uint8_t getPreInts()
const;
49 friend class HllSketchImplFactory<A>;
52 using ChsAlloc =
typename std::allocator_traits<A>::template rebind_alloc<CouponHashSet<A>>;
53 bool checkGrowOrPromote();
54 void growHashSet(uint8_t tgtLgCoupArrSize);
DataSketches namespace.
Definition: binomial_bounds.hpp:38
target_hll_type
Specifies the target type of HLL sketch to be created.
Definition: hll.hpp:72