[][src]Module binstore::bucket

Structs

Bucket

A bucket is backed by a file on disk; the file descriptor is wrapped in a buffered reader to reduce the number of syscalls when querying the database.

BucketHeader

The headers of a database; they are used to determine if a database file can be opened by binstore.

Checked

Phantom type for Bucket; state when the Bucket is opened and the headers have been checked and validated.

IndexEntry

An entry in the full index; the offset points into the data section where the set of Values is stored.

Initial

Phantom type for Bucket; state when the Bucket is opened, but headers haven't yet been checked.

SparseIndex

A small index that can be quickly loaded in memory.

Constants

INDEX_ENTRY_SIZE

Functions

create
delete
merge

Merges two binstore files, and returns a BTreeMap that can be fed to Bucket::create (or an error).