Comments (2)
@Kerollmops Mostly because the DBIterator
won't position at any key before user calls one of Seek
, SeekForPrev
, SeekToFirst
, or SeekToLast
manually. Thank you for informing this, do you think we can close it now?
from rust-rocksdb.
I think we can not close it until someone (including me) has made a PR that clarify this behavior and/or change it. Because currently the DBIterator
does not follow the RAII rules in the sence that it is not "initialised" just after the creation.
It could be interresting to create something like a DBIteratorBuilder
that does not implement the Iterator
trait itself but allow the user to build one that follows its requirements.
let iter = db.iter().seek_to_first();
Or something like:
let mut forward_iter = db.iter();
let mut custom_iter = db.iter_builder().seek_for_prev(...);
from rust-rocksdb.
Related Issues (20)
- linking with `cc` failed: multiple definition of `__muloti4' HOT 6
- Reduce boxing in callback structs HOT 1
- Support rocksdb-cloud HOT 5
- Questions: About IndexType::TwoLevelIndexSearch HOT 1
- Implement BitMask PerfContext HOT 6
- Build fail on Apple Silicon/M1 HOT 1
- 什么时候能够支持windows版本呢 HOT 1
- WriteBatch::iterate memory leak HOT 2
- Can't compile with README.md HOT 2
- Doc: update examples HOT 1
- Compile fail in clang 13.1.6 HOT 2
- The variable 'cf_opts' is not used by 'DB::open_cf' HOT 1
- rocksdb 7.7.3 achieves significant improvement
- Support for ChecksumGeneratorFactory HOT 4
- Does rust-rocksdb support async? HOT 2
- How to made rust backtrace readable?
- Fedora 38 build issue HOT 3
- Build failed when using clang 16
- Wide Columns support
- FFI bindings file generated by bindgen never used actually ? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust-rocksdb.