Class CompactionJobInfo
- Namespace
- RocksDbNet
- Assembly
- RocksDb.Net.dll
Information about a completed compaction job.
public sealed record CompactionJobInfo : IEquatable<CompactionJobInfo>
- Inheritance
-
CompactionJobInfo
- Implements
- Inherited Members
Constructors
CompactionJobInfo(string?, string[], string[], ulong, ulong, ulong, ulong, TimeSpan, ulong, int, CompactionReason, string?)
Information about a completed compaction job.
public CompactionJobInfo(string? ColumnFamilyName, string[] InputFiles, string[] OutputFiles, ulong TotalInputBytes, ulong TotalOutputBytes, ulong InputRecords, ulong OutputRecords, TimeSpan Elapsed, ulong NumOfCorruptKeys, int BaseInputLevel, CompactionReason CompactionReason, string? Status)
Parameters
ColumnFamilyNamestringInputFilesstring[]OutputFilesstring[]TotalInputBytesulongTotalOutputBytesulongInputRecordsulongOutputRecordsulongElapsedTimeSpanNumOfCorruptKeysulongBaseInputLevelintCompactionReasonCompactionReasonStatusstring
Properties
Aborted
true when the compaction was cancelled or otherwise did not finish.
The other values describe however much work it did before stopping.
public bool Aborted { get; init; }
Property Value
BaseInputLevel
public int BaseInputLevel { get; init; }
Property Value
BlobCompressionType
Compression applied to any blob files this compaction wrote.
public Compression BlobCompressionType { get; init; }
Property Value
BlobFileAdditions
Blob files created by this compaction. Empty when blob files are disabled.
public IReadOnlyList<BlobFileAdditionInfo> BlobFileAdditions { get; init; }
Property Value
BlobFileGarbage
Blob-file garbage discovered by this compaction.
public IReadOnlyList<BlobFileGarbageInfo> BlobFileGarbage { get; init; }
Property Value
ColumnFamilyId
Identifier of the column family that was compacted.
public uint ColumnFamilyId { get; init; }
Property Value
ColumnFamilyName
public string? ColumnFamilyName { get; init; }
Property Value
CompactionReason
public CompactionReason CompactionReason { get; init; }
Property Value
Compression
Compression applied to the SST files this compaction wrote.
public Compression Compression { get; init; }
Property Value
Elapsed
public TimeSpan Elapsed { get; init; }
Property Value
InputFileInfos
Level and file number for each input file.
public IReadOnlyList<CompactionFileInfo> InputFileInfos { get; init; }
Property Value
InputFiles
public string[] InputFiles { get; init; }
Property Value
- string[]
InputRecords
public ulong InputRecords { get; init; }
Property Value
JobId
Identifier of the compaction job, unique within the database's lifetime.
public int JobId { get; init; }
Property Value
NumL0Files
Number of level-0 files in the column family around the time of the compaction. RocksDb documents this as the count "right before and after" the compaction, and in practice a compaction that drains level 0 reports 0 here.
public int NumL0Files { get; init; }
Property Value
NumOfCorruptKeys
public ulong NumOfCorruptKeys { get; init; }
Property Value
OutputFileInfos
Level and file number for each output file.
public IReadOnlyList<CompactionFileInfo> OutputFileInfos { get; init; }
Property Value
OutputFiles
public string[] OutputFiles { get; init; }
Property Value
- string[]
OutputRecords
public ulong OutputRecords { get; init; }
Property Value
Stats
Detailed statistics for the compaction, or null if RocksDb reported
none. Supersedes the individual totals on this record, which remain for
compatibility.
public CompactionJobStats? Stats { get; init; }
Property Value
Status
public string? Status { get; init; }
Property Value
TablePropertiesByFile
Table properties for the files involved, keyed by file name. RocksDb includes both inputs and outputs.
public IReadOnlyDictionary<string, TableProperties> TablePropertiesByFile { get; init; }
Property Value
ThreadId
Identifier of the RocksDb background thread that ran the compaction.
public ulong ThreadId { get; init; }
Property Value
TotalInputBytes
public ulong TotalInputBytes { get; init; }
Property Value
TotalOutputBytes
public ulong TotalOutputBytes { get; init; }