Table of Contents

Class CompactionJobStats

Namespace
RocksDbNet
Assembly
RocksDb.Net.dll

Statistics for a completed compaction job. Maps to rocksdb_compaction_job_stats_t.

public sealed record CompactionJobStats : IEquatable<CompactionJobStats>
Inheritance
CompactionJobStats
Implements
Inherited Members

Remarks

Like TableProperties, the native struct is a borrowed view into the owning job-info object and has no destroy function, so instances of this type are eager copies that are safe to keep beyond the callback.

Properties

CpuMicros

CPU time the compaction consumed, in microseconds.

public ulong CpuMicros { get; init; }

Property Value

ulong

ElapsedMicros

Wall-clock time the compaction took, in microseconds.

public ulong ElapsedMicros { get; init; }

Property Value

ulong

FileFsyncNanos

Time spent in fsync, in nanoseconds.

public ulong FileFsyncNanos { get; init; }

Property Value

ulong

FilePrepareWriteNanos

Time spent preparing writes, in nanoseconds.

public ulong FilePrepareWriteNanos { get; init; }

Property Value

ulong

FileRangeSyncNanos

Time spent in range sync, in nanoseconds.

public ulong FileRangeSyncNanos { get; init; }

Property Value

ulong

FileWriteNanos

Time spent writing files, in nanoseconds.

public ulong FileWriteNanos { get; init; }

Property Value

ulong

HasAccurateNumInputRecords

Whether NumInputRecords is exact. RocksDb may only estimate it.

public bool HasAccurateNumInputRecords { get; init; }

Property Value

bool

IsFullCompaction

Whether the compaction covered every file in the column family.

public bool IsFullCompaction { get; init; }

Property Value

bool

IsManualCompaction

Whether the compaction was requested by the application.

public bool IsManualCompaction { get; init; }

Property Value

bool

IsRemoteCompaction

Whether the compaction ran on a remote worker.

public bool IsRemoteCompaction { get; init; }

Property Value

bool

LargestOutputKeyPrefix

Prefix of the largest output key. Raw bytes, since keys are not necessarily text.

public byte[] LargestOutputKeyPrefix { get; init; }

Property Value

byte[]

NumBlobsRead

Number of blobs read from blob files.

public ulong NumBlobsRead { get; init; }

Property Value

ulong

NumCorruptKeys

Number of keys that could not be parsed.

public ulong NumCorruptKeys { get; init; }

Property Value

ulong

NumExpiredDeletionRecords

Number of deletion entries that were dropped as no longer needed.

public ulong NumExpiredDeletionRecords { get; init; }

Property Value

ulong

NumFilteredInputFiles

Number of input files skipped entirely by a compaction filter.

public ulong NumFilteredInputFiles { get; init; }

Property Value

ulong

NumFilteredInputFilesAtOutputLevel

Number of skipped input files that were at the output level.

public ulong NumFilteredInputFilesAtOutputLevel { get; init; }

Property Value

ulong

NumInputDeletionRecords

Number of deletion entries among the inputs.

public ulong NumInputDeletionRecords { get; init; }

Property Value

ulong

NumInputFiles

Number of input files.

public ulong NumInputFiles { get; init; }

Property Value

ulong

NumInputFilesAtOutputLevel

Number of input files that were already at the output level.

public ulong NumInputFilesAtOutputLevel { get; init; }

Property Value

ulong

NumInputFilesTriviallyMoved

Number of input files that were moved rather than rewritten.

public ulong NumInputFilesTriviallyMoved { get; init; }

Property Value

ulong

NumInputRecords

Number of input records read.

public ulong NumInputRecords { get; init; }

Property Value

ulong

NumOutputFiles

Number of output files produced.

public ulong NumOutputFiles { get; init; }

Property Value

ulong

NumOutputFilesBlob

Number of output blob files produced.

public ulong NumOutputFilesBlob { get; init; }

Property Value

ulong

NumOutputRecords

Number of records written.

public ulong NumOutputRecords { get; init; }

Property Value

ulong

NumRecordsReplaced

Number of records superseded by a newer version of the same key.

public ulong NumRecordsReplaced { get; init; }

Property Value

ulong

NumSingleDelFallthru

Number of single deletions that found no matching put.

public ulong NumSingleDelFallthru { get; init; }

Property Value

ulong

NumSingleDelMismatch

Number of single deletions that did not match the expected put.

public ulong NumSingleDelMismatch { get; init; }

Property Value

ulong

SmallestOutputKeyPrefix

Prefix of the smallest output key. Raw bytes, since keys are not necessarily text.

public byte[] SmallestOutputKeyPrefix { get; init; }

Property Value

byte[]

TotalBlobBytesRead

Total bytes read from blob files.

public ulong TotalBlobBytesRead { get; init; }

Property Value

ulong

TotalInputBytes

Total size of all input files, in bytes.

public ulong TotalInputBytes { get; init; }

Property Value

ulong

TotalInputRawKeyBytes

Total size of input keys before compression or encoding, in bytes.

public ulong TotalInputRawKeyBytes { get; init; }

Property Value

ulong

TotalInputRawValueBytes

Total size of input values before compression or encoding, in bytes.

public ulong TotalInputRawValueBytes { get; init; }

Property Value

ulong

TotalOutputBytes

Total size of all output files, in bytes.

public ulong TotalOutputBytes { get; init; }

Property Value

ulong

TotalOutputBytesBlob

Total size of all output blob files, in bytes.

public ulong TotalOutputBytesBlob { get; init; }

Property Value

ulong

TotalSkippedInputBytes

Total input bytes that were skipped rather than processed.

public ulong TotalSkippedInputBytes { get; init; }

Property Value

ulong