Table of Contents

Enum FilterDecision

Namespace
RocksDbNet
Assembly
RocksDb.Net.dll

Decision returned by a CompactionFilter for each key-value pair encountered during table-file creation (compaction or flush).

public enum FilterDecision

Fields

ChangeValue = 2

Preserve the entry but replace its value with the byte array written to the newValue out parameter of Filter(int, ReadOnlySpan<byte>, ReadOnlySpan<byte>, out byte[]?).

Keep = 0

Preserve the entry unchanged.

Remove = 1

Remove the entry, which inserts a tombstone and hides earlier versions of the key.

Only plain key-values and wide-column entities reach a filter at all. The C API installs a filter through the plain callback alone, so merge operands are never offered to one and this decision cannot drop them. A filter written to expire data will not expire a key whose value is built from merge operands.