-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request: Counting bloom filter function to get current value #3
Comments
It is possible to provide an api to return the count, but due to the principle of the counting bloom filter itself, this count is not an accurate statistic, but only a rough estimate, and if too much elements are inserted to this bloom filter, the more inaccurate this estimate will be. Does this meet your needs? |
Yes, that works for the scenario I am working on. And the current 4 bits of counting works perfect for my scenario. Appreciate it @yankun1992! |
In CountingBloomFilter, add methods |
Another request if possible. For the counting bloom filter, is it possible add a function to get the current count?
Eg:
Not sure if this is possible since I'm not a bloom filter expert. I think looking at the code it uses 4 bits for the counting, so will be encoding a count between 0 and 15 to track the count, right?
The text was updated successfully, but these errors were encountered: