datasketches-cpp
Loading...
Searching...
No Matches
Public Member Functions | List of all members
tuple_union< Summary, Policy, Allocator >::builder Class Reference

Tuple union builder. More...

#include <tuple_union.hpp>

Inheritance diagram for tuple_union< Summary, Policy, Allocator >::builder:
tuple_base_builder< builder, P, A > theta_base_builder< Derived, Allocator >

Public Member Functions

 builder (const P &policy=P(), const A &allocator=A())
 Constructor.
 
tuple_union build () const
 Create an instance of the union with predefined parameters.
 
- Public Member Functions inherited from theta_base_builder< Derived, Allocator >
 theta_base_builder (const Allocator &allocator)
 Creates and instance of the builder with default parameters.
 
Derived & set_lg_k (uint8_t lg_k)
 Set log2(k), where k is a nominal number of entries in the sketch.
 
Derived & set_resize_factor (resize_factor rf)
 Set resize factor for the internal hash table (defaults to 8)
 
Derived & set_p (float p)
 Set sampling probability (initial theta).
 
Derived & set_seed (uint64_t seed)
 Set the seed for the hash function.
 

Detailed Description

template<typename Summary, typename Policy = default_tuple_union_policy<Summary>, typename Allocator = std::allocator<Summary>>
class datasketches::tuple_union< Summary, Policy, Allocator >::builder

Tuple union builder.

Constructor & Destructor Documentation

◆ builder()

template<typename S , typename P , typename A >
builder ( const P &  policy = P(),
const A &  allocator = A() 
)

Constructor.

Creates and instance of the builder with default parameters.

Parameters
policy
allocator

Member Function Documentation

◆ build()

template<typename S , typename P , typename A >
auto build ( ) const

Create an instance of the union with predefined parameters.

Returns
an instance of the union

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