RoaringBitmap.previousValue returning wrong value
See original GitHub issueDescribe the bug
RoaringBitmap#previousValue
is returning wrong value or throws assertion error when running with -ea
in some situations.
To Reproduce
RoaringBitmap.bitmapOf(27399807).previousValue(403042); // This returns 27399807 or throws assertion error when application is run with -ea
Not all values lower than the minimum value of the bitmap has this behaviour. For example, RoaringBitmap.bitmapOf(27399807).previousValue(1000)
returns -1 which is correct.
RoaringBitmap version:
0.9.28
Java version:
openjdk version “11.0.14”
Issue Analytics
- State:
- Created a year ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Support previousValue, nextAbsentValue, and ... - GitHub
Hi, Both BitSet and SparseBitSet have said functions, which return the next / previous index which is contained / not contained in the...
Read more >RoaringBitmap (RoaringBitmap 0.7.30 API) - javadoc.io
long, previousValue(int fromValue). Returns the first value less than or equal to the provided value (interpreted as an unsigned integer).
Read more >roaring - Go Packages
It returns a boolean value, and also an explanation for a false value. ... sets-or-clears bits based on a provided Roaring bitmap.
Read more >RoaringBitmap Performance Tricks - Richard Startin's Blog
In a RoaringBitmap you need to store the value 1 for the higher 16 bits ... if (xlen != ylen) { return false;...
Read more >Consuming and Indexing rows in Realtime
Pinot controller sets the value of the starting offset in the segment metadata in ... pinot.server.instance.realtime.alloc.offheap: Default is false.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Damn it. Re-releasing.
Note that I did not spend much time on the review. It felt straight-forward.