Skip to content

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
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