Manages membership queries for the hibf::hierarchical_interleaved_bloom_filter.
More...
template<seqan3::data_layout data_layout_mode_ = seqan3::data_layout::uncompressed>
class raptor::hierarchical_interleaved_bloom_filter< data_layout_mode_ >::membership_agent
Manages membership queries for the hibf::hierarchical_interleaved_bloom_filter.
- See also
- hibf::hierarchical_interleaved_bloom_filter::user_bins::filename_of_user_bin
In contrast to the [seqan3::interleaved_bloom_filter][1], the result will consist of indices of user bins.
template<seqan3::data_layout data_layout_mode_ = seqan3::data_layout::uncompressed>
template<std::ranges::forward_range value_range_t>
Determines set membership of given values, and returns the user bin indices of occurrences.
- Parameters
-
[in] | values | The values to process; must model std::ranges::forward_range. |
[in] | threshold | Report a user bin if there are at least this many hits. |
- Attention
- The result of this function must always be bound via reference, e.g.
auto &
, to prevent copying.
-
Sequential calls to this function invalidate the previously returned reference.
Thread safety
Concurrent invocations of this function are not thread safe, please create a hibf::hierarchical_interleaved_bloom_filter::membership_agent for each thread.