25template<
typename Array,
typename Policy,
typename Allocator>
27Base(seed, policy, allocator) {}
29template<
typename Array,
typename Policy,
typename Allocator>
30template<
typename FwdSketch>
32 const uint8_t num_values = this->state_.get_policy().get_external_policy().get_num_values();
33 if (sketch.get_num_values() != num_values) {
34 throw std::invalid_argument(
"number of values mismatch: intersection has " + std::to_string(num_values)
35 +
", sketch has " + std::to_string(sketch.get_num_values()));
40template<
typename Array,
typename Policy,
typename Allocator>
42 return CompactSketch(this->state_.get_policy().get_external_policy().get_num_values(),
Base::get_result(ordered));
CompactSketch get_result(bool ordered=true) const
Produces a copy of the current state of the intersection.
Definition array_tuple_intersection_impl.hpp:41
void update(FwdSketch &&sketch)
Updates the intersection with a given sketch.
Definition array_tuple_intersection_impl.hpp:31
array_tuple_intersection(uint64_t seed=DEFAULT_SEED, const Policy &policy=Policy(), const Allocator &allocator=Allocator())
Constructor.
Definition array_tuple_intersection_impl.hpp:26
CompactSketch get_result(bool ordered=true) const
void update(FwdSketch &&sketch)
DataSketches namespace.
Definition binomial_bounds.hpp:38