Module bloom

Source
Expand description

Counting and non-counting Bloom filters tuned for use as ancestor filters for selector matching.

Structsยง

BloomStorageBool
Storage class for a CountingBloomFilter that has 1-bit counters.
BloomStorageU8
Storage class for a CountingBloomFilter that has 8-bit counters.
CountingBloomFilter
A counting Bloom filter with parameterized storage to handle counters of different sizes. For now we assume that having two hash functions is enough, but we may revisit that decision later.

Constantsยง

ARRAY_SIZE ๐Ÿ”’
BLOOM_HASH_MASK
KEY_MASK ๐Ÿ”’
KEY_SIZE ๐Ÿ”’

Traitsยง

BloomStorage

Functionsยง

hash1 ๐Ÿ”’
hash2 ๐Ÿ”’

Type Aliasesยง

BloomFilter
A counting Bloom filter with 8-bit counters.