Skip to content
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

efficient way to do nextOff(long fromPosition) with Roaring64Bitmap #584

Open
nareshv opened this issue Sep 8, 2022 · 0 comments
Open

Comments

@nareshv
Copy link

nareshv commented Sep 8, 2022

Is your feature request related to a problem? Please describe.
Whats the recommended way to find nextOff(long fromPosition) to see whats the bit which is turned off from a given position ? This is useful to compress contiguous values

Describe the solution you'd like
When determining the contiguous ranges from the first value in the RoaringBitmap it is sometimes needed to find the next bit which is turned off. Any pointers on how this can be accomplished without getting the full entries, or using forEach() to traverse the bitmap and getting the desired value ?

Please note that this is a community-based project. Consider proposing a fix (code, documentation) as a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant