Skip to content

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

Merged
merged 10 commits into from
May 23, 2024
Merged

Conversation

c-dickens
Copy link

Added the builder functions for quotient filter.
Splitting the PRs to avoid a large code review.

*/
//package bitmap_implementations;

public class QuickBitVector extends Object {
Copy link
Contributor

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));
Copy link
Contributor

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

@AlexanderSaydakov
Copy link
Contributor

Naming is inconsistent.
We usually use "thisStyle" in Java, not "this_style"

@AlexanderSaydakov
Copy link
Contributor

I understand this is just a checkpoint in a large effort, so what I mentioned above is not a stopper.

@c-dickens c-dickens merged commit e5e0f0f into quotient-filter-reviewed May 23, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants