Closed rogerdielrton closed 8 years ago
I found the cause:
FilterBuilder.isCompatibleTo:
return this.size() == other.size() && this.hashes() == other.hashes() && this.hashMethod() == other.hashMethod();
According to that, because "alpha" and "omega" match in "hashes" and "hash method", but differ on "size", then "intersect" and "union" returns "false".
Hi. Congratulations for your Bloom Filter library: is very useful and complete. Come on with my problem: The execution of my test code (see below "MyTest" Java class) fails because "union" and "intersection" methods returns "false": Interface orestes.bloomfilter.BloomFilter:
Why both returns "false"? What's the meaning of "bloom filter could SUCCESSFULLY be updated"? How to avoid tha "union" and "intersection" works well without returning "false"? Thanks in advance.