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

Is it possible to be compatible with java based roaringbitmap?

Open zuston opened this issue 1 year ago • 6 comments

Thanks for your great work in this project. I want to know is it possible to serialize the bitmap into the bytes in rust side that could be deserialized by java roaringbitmap dependency

zuston avatar Jan 20 '25 12:01 zuston

cc @Kerollmops

zuston avatar Jan 20 '25 12:01 zuston

Hey @zuston 👋

The serialize_into method serializes a bitmap in a format that is compatible with the Java and the other ones. However, this crate will not generate ranges but bitmaps and lists of integers only.

Kerollmops avatar Jan 20 '25 19:01 Kerollmops

Thanks for your quick reply @Kerollmops . BTW, which data structure could be compatible with the Roaring64NavigableMap in java side.

zuston avatar Jan 21 '25 02:01 zuston

Hey @zuston 👋 I don't know which encoder they use. When I read the doc, it seems that they can store up to 2^32 integers, so maybe it's the same encoder as our RoaringTreemap/RoaringBitmap?

Kerollmops avatar Feb 28 '25 06:02 Kerollmops

Hey @zuston 👋 I don't know which encoder they use. When I read the doc, it seems that they can store up to 2^32 integers, so maybe it's the same encoder as our RoaringTreemap?

Oh thanks. Let me test it and I want to use this crate to replace the roaringc rust binding.

zuston avatar Feb 28 '25 06:02 zuston

Oh thanks. Let me test it and I want to use this crate to replace the roaringc rust binding.

Did you have a chance to test it, are they compatible?

reneleonhardt avatar Jun 19 '25 08:06 reneleonhardt