jankotek / mapdb

MapDB provides concurrent Maps, Sets and Queues backed by disk storage or off-heap-memory. It is a fast and easy to use embedded Java database engine.
https://mapdb.org
Apache License 2.0
4.89k stars 873 forks source link

NavigableSet.headSet with inclusive 'true' is not working, also tailSet with inclusive 'false' not working too #980

Open jankotek opened 3 years ago

jankotek commented 3 years ago

Hi , NavigableSet.headSet with inclusive 'true' is not working, also tailSet with inclusive 'false' not working too. has anyone else experience this. I'm using latest version of mapdb 3.0.8 to explain further , NavigableSet.headSet with inclusive 'true' not including the equal value in the result set. NavigableSet. tailSet with inclusive 'false' including the equal value in the result set

Jan Kotek @jankotek 12:57 @nuwansa it should work, there are unit tests for this case. Maybe you are using some exotic data type where 'equal' is not correctly handled? what is your serializer and config?

Nuwan Sanjeewa Abeysiriwardana @nuwansa 13:11 @jankotek this is the initialization code this.db .treeSet("map") .serializer(new SerializerArrayTuple(Serializer.BIG_DECIMAL, Serializer.LONG)) .counterEnable() .createOrOpen();