client-java icon indicating copy to clipboard operation
client-java copied to clipboard

Implement reverseScan

Open jiaminglu opened this issue 3 years ago • 0 comments

I need a reverseScan so I implemented it.

This PR added scan methods with a boolean reverse argument, and also a seperate reverseScan method.

I exchanges the position of startKey and endKey before creating the iterator, because you did so in the rust client. I'm assuming startKey means strictly the lower bound and so does endKey.

Since there are no test cases for the behavior of scan in this repo, unit tests for reverseScan are also not written.

jiaminglu avatar Jan 11 '23 06:01 jiaminglu