Builder class to help build KuduBloomFilter
to be used with IN Bloom filter predicate.
More...
#include <scan_predicate.h>
Builder class to help build KuduBloomFilter
to be used with IN Bloom filter predicate.
◆ KuduBloomFilterBuilder()
kudu::client::KuduBloomFilterBuilder::KuduBloomFilterBuilder |
( |
size_t |
num_keys | ) |
|
|
explicit |
- Parameters
-
[in] | num_keys | Expected number of elements to be inserted in the Bloom filter. |
◆ Build()
Build a new Bloom filter to be used with IN Bloom filter predicate.
- Parameters
-
- Returns
- On success, Status::OK() with the created Bloom filter in
bloom_filter
output parameter. On failure to allocate memory or invalid arguments, corresponding error status.
◆ false_positive_probability()
- Parameters
-
[in] | fpp | Desired false positive probability between 0.0 and 1.0. If not provided, defaults to 0.01. |
- Returns
- Reference to the updated object.
◆ hash_algorithm()
- Parameters
-
[in] | hash_algorithm | Hash algorithm used to hash keys before inserting to the Bloom filter. If not provided, defaults to FAST_HASH. |
- Note
- Currently only FAST_HASH is supported.
- Returns
- Reference to the updated object.
◆ hash_seed()
- Parameters
-
[in] | hash_seed | Seed used with hash algorithm to hash the keys before inserting to the Bloom filter. If not provided, defaults to 0. |
- Returns
- Reference to the updated object.
The documentation for this class was generated from the following file: