Associate a Comphash with a BloomFilterVal.

We also keep track of the Bloom filter's element type inside each value. The
first use of the BiF bloomfilter_add will "typify" the Bloom filter and lock
the Bloom filter's type to the element type.
This commit is contained in:
Matthias Vallentin 2013-06-05 16:16:55 -07:00
parent 751cf61293
commit 880d02f720
4 changed files with 91 additions and 5 deletions

View file

@ -269,7 +269,8 @@ private:
*/
class CountingBloomFilter : public BloomFilter {
public:
CountingBloomFilter(unsigned width);
CountingBloomFilter(double fp, size_t capacity, size_t width);
CountingBloomFilter(size_t cells, size_t capacity, size_t width);
protected:
DECLARE_SERIAL(CountingBloomFilter);