MCPcopy Create free account
hub / github.com/apache/impala / AddKey

Method AddKey

be/src/kudu/util/bloom_filter.h:226–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226inline void BloomFilterBuilder::AddKey(const BloomKeyProbe &probe) {
227 uint32_t h = probe.initial_hash();
228 for (size_t i = 0; i < n_hashes_; i++) {
229 uint32_t bitpos = BloomFilter::PickBit(h, n_bits_);
230 BitmapSet(&bitmap_[0], bitpos);
231 h = probe.MixHash(h);
232 }
233 n_inserted_++;
234}
235
236inline bool BloomFilter::MayContainKey(const BloomKeyProbe &probe) const {
237 uint32_t h = probe.initial_hash();

Callers 2

TEST_PFunction · 0.45
AddRandomKeysFunction · 0.45

Calls 3

BitmapSetFunction · 0.85
initial_hashMethod · 0.80
MixHashMethod · 0.80

Tested by 2

TEST_PFunction · 0.36
AddRandomKeysFunction · 0.36