SSTB
An experimental an educational attempt to write a Rust thread-safe sstables library.
See the documentation for more details and background.
How to use
For writing SSTables, refer to writer documentation
For reading SSTables, refer to reader documentation
Quickstart
This example will write then read the sstable with all default options with a single-threaded.
For more efficient, concurrent reading code, refer to reader documentation.
use *;
use BTreeMap;
let filename = "/tmp/example-sstable";
let mut map = new;
map.insert;
map.insert;
write_btree_map.unwrap;
// This example does not use multiple threads, so it's ok to use
// SSTableReader instead of ConcurrentSSTableReader.
let mut reader =
new_with_options
.unwrap;
assert_eq!;
assert_eq!;
assert_eq!;