Roaring64Bitmap.forEach question

62 views
Skip to first unread message

Péter Váry

unread,
May 3, 2022, 4:38:20 AM5/3/22
to Roaring Bitmaps
Hi Team,

I would like to use Roaring64Bitmap for collecting Long values in random order, and then writing them out in ascending order. Based on the documentation I could use the Roaring64Bitmap.getLongIterator to traverse through the values in the correct order.

The documentation says:

For better performance, consider the Use the forEach method.

I do not see any mention of the ordering of the elements using the forEach method. Does this mean that the documentation should be worded like this:

When the order of the elements are irrelevant consider the Use the forEach method for better performance.

Or the forEach method also iterates the elements in ascending order?

Thanks,
Peter

Reply all
Reply to author
Forward
0 new messages