Closed raybellis closed 9 years ago
Me again :)
I'm having trouble with db.seek only finding exact matches, and not (as per the documentation) "first key greater than or equal to specified key".
db.seek
I believe the culprit is this, from EntryIterator.java:
EntryIterator.java
public boolean hasNext() { if (first) { if (key != null) { this.entry = cursor.seek(SeekOp.KEY, key); }
shouldn't that be SeekOp.RANGE rather than .KEY ?
SeekOp.RANGE
.KEY
FWIW, I've just made this change locally and tested it and am now getting perfect results with my custom comparator :) Thanks loads for the help!
Great! If you send me a pull request i'll merge it in.
Me again :)
I'm having trouble with
db.seek
only finding exact matches, and not (as per the documentation) "first key greater than or equal to specified key".I believe the culprit is this, from
EntryIterator.java
:shouldn't that be
SeekOp.RANGE
rather than.KEY
?