Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reverse iterators #192

Open
maackle opened this issue Feb 26, 2020 · 0 comments
Open

Reverse iterators #192

maackle opened this issue Feb 26, 2020 · 0 comments

Comments

@maackle
Copy link

maackle commented Feb 26, 2020

It seems like it would be easy to add a few methods to SingleStore et al to produce Iterators that go in reverse. I proposed this in mozilla/lmdb-rs#75, which if merged should make adding it to rkv a simple matter.

I'm going to try it in a fork, but I want to ask if there are any guidelines for interfaces that a maintainer could propose that would make my work more likely to be merged upstream. Adding iter_end and iter_from_reverse come to mind as a possibility, but it could also be implemented as a flag on iter_start and iter_from.

I need this for my project, specifically the ability to get the last key by sort order, which a reverse iterator would accomplish in a more general way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant