Enum IoActivity
- Namespace
- RocksDbNet
- Assembly
- RocksDb.Net.dll
Labels the kind of work an I/O operation belongs to, which RocksDb passes through to the filesystem and to its own statistics.
public enum IoActivity
Fields
Compaction = 1Compaction.
DbIterator = 5Iteration.
DbOpen = 2Opening the database.
FirstCustom = 128The first value available for application-defined activities.
Flush = 0Writing a memtable out to an SST file.
Get = 3A point lookup.
GetEntity = 8A wide-column point lookup.
GetFileChecksumsFromCurrentManifest = 10Reading file checksums out of the current manifest.
MultiGet = 4A batched point lookup.
MultiGetEntity = 9A batched wide-column point lookup.
Unknown = 255No activity recorded, which is what RocksDb labels an operation with unless something sets one.
kUnknown, which RocksDb keeps last in the enum for exactly this purpose. Without it the default was not expressible: reading IoActivity on fresh options returned a value no member matched, soEnum.IsDefinedsaid false andToStringgave a bare number, and a caller who had set an activity had no way to put it back.VerifyDbChecksum = 6Verifying database checksums.
VerifyFileChecksums = 7Verifying file checksums.
Remarks
This is experimental in RocksDb. Leaving it unset lets RocksDb label the operation itself, which is normally what you want; setting it by hand overrides that.
Values 11 through 0x7F are reserved by RocksDb for future use, and 0x80
upwards are available for application-defined activities. Mirrored from
include/rocksdb/env.h because the C API declares this parameter as a
plain int.