Mercurial > lbo > hg > sstable
changeset 4:c0e7fd030c24
Add README
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Sat, 19 Nov 2016 14:03:28 +0100 |
parents | 14484cc26b69 |
children | b2891489832c |
files | README.md |
diffstat | 1 files changed, 22 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/README.md Sat Nov 19 14:03:28 2016 +0100 @@ -0,0 +1,22 @@ +# sstable + +[Documentation](https://docs.rs/sstable) + +This crate provides an API to work with immutable (string -> string) maps stored +on disk. The main access method are iterators, but there's a simpler API, too. + +The general process is + +* Writing a table to disk, using `TableBuilder`. The entries have to be added in + sorted order. +* Reading a table from disk, using `TableReader`. + +Note that the tables and some other structures are generic over the ordering of +keys; usually you can just use `StandardComparator`, though. + +With `Options`, you can influence some details of how tables are laid out on +disk. Usually, you don't need to; just use the `Options::default()` value. + +If there's data corruption in the files on disk, defective blocks will be +skipped. How many entries a single block contains depends on the block size, +which can be set in the `Options` struct.