package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
EngineStats computes MVCC stats for the given engine reader, limited to the replicated user keyspace.
KeysFromSST takes an SST as a byte slice and returns all point and range keys in the SST.
MakeSST builds a binary in-memory SST from the given KVs, which can be both MVCCKeyValue or MVCCRangeKeyValue.
MakeSST builds a binary in-memory SST from the given KVs, which can be both MVCCKeyValue or MVCCRangeKeyValue.
MVCCGetRaw fetches a raw MVCC value, for use in tests.
MVCCGetRawWithError is like MVCCGetRaw, but returns an error rather than failing the test.
PointKey creates an MVCCKey for the given string key and timestamp (walltime seconds).
PointKV creates an MVCCKeyValue for the given string key/value and timestamp (walltime seconds).
PointKVWithImportEpoch creates an MVCCKeyValue for the given string key/value, timestamp, and ImportEpoch.
PointKVWithLocalTS creates an MVCCKeyValue for the given string key/value, timestamp, and local timestamp (walltime seconds).
RangeKey creates an MVCCRangeKey for the given string key and timestamp (in walltime seconds).
RangeKeyWithTS creates an MVCCRangeKey for the given string key and timestamp.
RangeKV creates an MVCCRangeKeyValue for the given string keys, value, and timestamp (in walltime seconds).
RangeKVWithLocalTS creates an MVCCRangeKeyValue for the given string keys, value, and timestamp (in walltime seconds).
RangeKVWithTS creates an MVCCRangeKeyValue for the given string keys, value, and timestamp.
ScanEngine scans all point/range keys from the replicated user keyspace of the engine, returning a combined slice of MVCCKeyValue and MVCCRangeKeyValue in order.
ScanIter scans all point/range keys from the iterator, returning a combined slice of MVCCKeyValue and MVCCRangeKeyValue in order.
ScanKeySpan scans all point/range keys in the given key span, returning a combined slice of MVCCKeyValue and MVCCRangeKeyValue in order.
ScanRange scans all user point/range keys owned by the given range descriptor, returning a combined slice of MVCCKeyValue and MVCCRangeKeyValue in order.
ScanSST scans all point/range keys from the given binary SST, returning a combined slice of MVCCKeyValue and MVCCRangeKeyValue in order.
SSTStats computes MVCC stats for the given binary SST.
StringValue creates an MVCCValue for a string.
StringValueRaw creates an encoded MVCCValue for a string.
WallTS creates a timestamp for the given wall time (in seconds).
WithLocalTS attaches a local timestamp (in walltime seconds) to an MVCCValue.
WrapFilterForReplayProtection wraps a filter into another one that adds Raft replay protection.
# Structs
ReplayProtectionFilterWrapper wraps a CommandFilter and assures protection from Raft replays.
# Type aliases
KVs is a slice of either MVCCKeyValue or MVCCRangeKeyValue.