roaring-rs icon indicating copy to clipboard operation
roaring-rs copied to clipboard

Is there any ops like gte in java RangeBitmap?

Open likun666661 opened this issue 1 year ago • 1 comments

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

likun666661 avatar May 14 '24 03:05 likun666661

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?

Kerollmops avatar May 28 '24 08:05 Kerollmops