Crate keyvalint

Crate keyvalint 

Source
Expand description

A generic KEY VALue INTerface for abstracting away key-value stores. Used for comparing key-value stores in the keyvalint_bench crate. Different key-value stores will have varying levels of support.

Modules§

reference
A reference key-value store.

Structs§

Key
A memory-owning Key.
KeyRef
A shallow, easy-to-copy reference to a key.
KeyValuePair
A KeyValuePair is an owned version of a key-value pair.
KeyValueRef
A KeyValueRef is an easy-to-copy version of a key-value pair.

Constants§

DEFAULT_KEY
The default key is the zero key.
DEFAULT_TIMESTAMP
The default timestamp is 0.
MAX_BATCH_LEN
The maximum size of a write batch, in bytes.
MAX_KEY
The maximum key. This is eleven 0xff bytes.
MAX_KEY_LEN
The maximum length of a key.
MAX_VALUE_LEN
The maximum length of a value.
MIN_KEY
The zero key. This is the empty byte string.
TABLE_FULL_SIZE
The recommended size of a table.

Traits§

Cursor
A Cursor allows for iterating through data.
KeyValueLoad
A read-oriented key-value store. KeyValueLoad is a pun on register load.
KeyValueStore
A write-oriented key-value store. KeyValueStore is a pun on register store.
WriteBatch
A write batch aggregates writes to be written together.

Functions§

compare_bytes
Compare the bytes lexicographically.
compare_key
Compare the keys lexicograhically.