Table of Contents

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 = 1

Compaction.

DbIterator = 5

Iteration.

DbOpen = 2

Opening the database.

FirstCustom = 128

The first value available for application-defined activities.

Flush = 0

Writing a memtable out to an SST file.

Get = 3

A point lookup.

GetEntity = 8

A wide-column point lookup.

GetFileChecksumsFromCurrentManifest = 10

Reading file checksums out of the current manifest.

MultiGet = 4

A batched point lookup.

MultiGetEntity = 9

A batched wide-column point lookup.

Unknown = 255

No 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, so Enum.IsDefined said false and ToString gave a bare number, and a caller who had set an activity had no way to put it back.

VerifyDbChecksum = 6

Verifying database checksums.

VerifyFileChecksums = 7

Verifying 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.