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

Is there any ops like gte in java RangeBitmap? #275

Open
likun666661 opened this issue May 14, 2024 · 1 comment
Open

Is there any ops like gte in java RangeBitmap? #275

likun666661 opened this issue May 14, 2024 · 1 comment
Labels

Comments

@likun666661
Copy link

https://github.com/RoaringBitmap/RoaringBitmap?tab=readme-ov-file#range-bitmaps
Is there any chance that we can use RangeBitmap?

@Kerollmops
Copy link
Member

Hey @likun666661 👋

Unfortunately, those operations do not exists. This issue seems highly related to this recent one #276. It is not very complex to create a range operator that can be converted into a bitmap if necessary.

let bitmap = RoaringBitmap::from_iter(20..142);
let iter = bitmap.range(23..42);
let subset_bitmap = iter.collect(); // can this be specialized for roaring::Iter types?

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

No branches or pull requests

2 participants