Open liuzhijun opened 6 months ago
It sort of already exists with the iterkeys method.
I think I would also rather base the API on https://grantjenks.com/docs/sortedcontainers/sortedlist.html#sortedcontainers.SortedList.irange
Please describe your use case further.
Yes, I think it's OK. Sorted Containers's irange api also works!
The idea that the requirements for range selection was come from the foundationdb's api. From here: https://apple.github.io/foundationdb/data-modeling.html#the-core-data-model
What's more amazing is the tuple based key operation(pack and uppack) in foundation db's Python API that can apply to any sorted persistent storage that lead to a amazing OLTP persitent layer. take a api usage here: https://apple.github.io/foundationdb/class-scheduling.html the tuple based api here: https://apple.github.io/foundationdb/api-python.html#api-python-tuple-layer
That's all why I think the persistent container should support range selection based on the start and end key.
Thank you again for your kindly comment and such a amazoning library !!
can take a reference here: https://plyvel.readthedocs.io/en/latest/user.html#iterators
samples like:
I can also submit a PR if ok.
Thank you !!