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

array tuple A-not-B More...

#include <array_tuple_a_not_b.hpp>

Inheritance diagram for array_tuple_a_not_b< Array, Allocator >:
tuple_a_not_b< Array, typename Array::allocator_type >

Public Member Functions

 array_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 Array, typename Allocator = typename Array::allocator_type>
class datasketches::array_tuple_a_not_b< Array, Allocator >

array tuple A-not-B

Constructor & Destructor Documentation

◆ array_tuple_a_not_b()

array_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: