-
Notifications
You must be signed in to change notification settings - Fork 214
Added initial QF builder functions #558
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
Conversation
*/ | ||
//package bitmap_implementations; | ||
|
||
public class QuickBitVector extends Object { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"extends Object" is implied (not a big deal)
if (maxDistinctItems <= 0) { | ||
throw new SketchesArgumentException("maxDistinctItems must be strictly positive"); | ||
} | ||
byte result = (byte) Math.ceil(Math.log(maxDistinctItems / 0.9) / Math.log(2)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest to avoid unnamed magic numbers.
static final double loadFactor = 0.9
Naming is inconsistent. |
I understand this is just a checkpoint in a large effort, so what I mentioned above is not a stopper. |
Added the builder functions for quotient filter.
Splitting the PRs to avoid a large code review.