StoreStats

A snapshot of what the store is holding, for tests, benchmarks and operational visibility.

Taken without the write lock, so the figures are individually accurate and mutually approximate — which is the right trade for numbers whose purpose is to be watched rather than to be reasoned with.

Properties

Link copied to clipboard

Sequence number of the last committed operation; 0 before anything is written.

Link copied to clipboard

Snapshots currently open.

Link copied to clipboard

Bytes written to the current log, including its header.

Link copied to clipboard

Number of the log currently being appended to.

Link copied to clipboard

Approximate size of the active memtable. See StoreOptions.memtableMaxBytes.

Link copied to clipboard

Versions held in the active memtable, counting superseded ones.

Link copied to clipboard

Memtables that have been sealed and are awaiting a segment.

Link copied to clipboard

Total size of those segments on disk.

Link copied to clipboard

Sorted segments the live version names, across every level.

Link copied to clipboard

Segments per level, index 0 being level 0.

Functions

Link copied to clipboard
open override fun toString(): String