Crate bitcoinleveldb_key

Source

Structs§

InternalFilterPolicy
| Filter policy wrapper that converts | from internal keys to user keys |
InternalKey
| Modules in this directory should keep internal | keys wrapped inside the following class instead | of plain strings so that we do not incorrectly | use string comparisons instead of an | InternalKeyComparator.
InternalKeyComparator
| A comparator for internal keys that | uses a specified comparator for the | user key portion and breaks ties by decreasing | sequence number. |
LookupKey
| A helper class useful for DBImpl::Get() |
ParsedInternalKey

Enums§

ValueType
| Value types encoded as the last component of | internal keys. | | DO NOT CHANGE THESE ENUM VALUES: they are | embedded in the on-disk data structures.

Constants§

MAX_SEQUENCE_NUMBER
| We leave eight bits empty at the bottom | so a type and sequence# can be packed | together into 64-bits. |
VALUE_TYPE_FOR_SEEK
| kValueTypeForSeek defines the ValueType that | should be passed when constructing | a ParsedInternalKey object for seeking to | a particular sequence number (since we sort | sequence numbers in decreasing order and the | value type is embedded as the low 8 bits in the | sequence number in internal keys, we need to | use the highest-numbered ValueType, not the | lowest).

Traits§

Key
Value

Functions§

append_internal_key
| Append the serialization of “key” to | *result. |
extract_user_key
| Returns the user key portion of an internal | key. |
internal_key_encoding_length
| Return the length of the encoding of | “key”. |
pack_sequence_and_type
parse_internal_key
| Attempt to parse an internal key from | “internal_key”. On success, stores the parsed | data in “*result”, and returns true. | | On error, returns false, leaves “*result” in an | undefined state.

Type Aliases§

KVMap
KVMapConstIterator
SequenceNumber