datasketches-cpp
Public Member Functions | List of all members
tuple_a_not_b< Summary, Allocator > Class Template Reference

tuple A-not-B More...

#include <tuple_a_not_b.hpp>

Public Member Functions

 tuple_a_not_b (uint64_t seed=DEFAULT_SEED, const Allocator &allocator=Allocator())
 Constructor. More...
 
template<typename FwdSketch , typename Sketch >
CompactSketch compute (FwdSketch &&a, const Sketch &b, bool ordered=true) const
 Computes the A-not-B set operation given two sketches. More...
 

Detailed Description

template<typename Summary, typename Allocator = std::allocator<Summary>>
class datasketches::tuple_a_not_b< Summary, Allocator >

tuple A-not-B

Constructor & Destructor Documentation

◆ tuple_a_not_b()

tuple_a_not_b ( uint64_t  seed = DEFAULT_SEED,
const Allocator &  allocator = Allocator() 
)
explicit

Constructor.

Parameters
seedfor the hash function that was used to create the sketch
allocatorto use for allocating and deallocating memory

Member Function Documentation

◆ compute()

CompactSketch compute ( FwdSketch &&  a,
const Sketch &  b,
bool  ordered = true 
) const

Computes the A-not-B set operation given two sketches.

Parameters
asketch A
bsketch B
orderedoptional flag to specify if an ordered sketch should be produced
Returns
the result of A-not-B as a compact sketch

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