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.
- KeyValue
Pair - A KeyValuePair is an owned version of a key-value pair.
- KeyValue
Ref - 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
0xffbytes. - 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.
- KeyValue
Load - A read-oriented key-value store. KeyValueLoad is a pun on register load.
- KeyValue
Store - A write-oriented key-value store. KeyValueStore is a pun on register store.
- Write
Batch - A write batch aggregates writes to be written together.
Functions§
- compare_
bytes - Compare the bytes lexicographically.
- compare_
key - Compare the keys lexicograhically.