Skip to content

Common bitarray #567

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 13 commits into from
May 31, 2024
Merged

Common bitarray #567

merged 13 commits into from
May 31, 2024

Conversation

jmalkin
Copy link
Contributor

@jmalkin jmalkin commented May 31, 2024

Refactored BloomFilter's BitArray class to make it common across filters. That involved making it public, so all the methods in the abstract base class now have a javadoc.

BitArray now has getBits(index, numBits) and setBits(index, numBits, value) (where the max size is 64 bits) as well as assignBit(index, value). The QuotientFilter has been updated to use this class, and the old Bitmap wrapping some legacy CERN code has been removed.

Opening this against the reviewed branch, but we probably then want to merge back into quotient-filter after that?

leerho and others added 11 commits May 10, 2024 10:36
to compute absolute maximum number of storage bytes required for a
CompactSketch given the configured number of nominal entries (power of
2).
removed intermediate hash map
Improvements to getCompactSketchMaxBytes(...)

Renaming of two special functions one in HeapQuickSelectSketch and the
other in DirectQuickSelectSketchR.
Also changed their access privilege.
And DirectQuickSelectSketchR::getOffHeapHashTableThreshold(..)
to eliminate the unnecessary Math.floor(..) function.
@jmalkin jmalkin merged commit 9b74797 into quotient-filter-reviewed May 31, 2024
2 checks passed
@jmalkin jmalkin deleted the common_bitarray branch May 31, 2024 20:42
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.

4 participants