Struct WriteBatchEntry
- Namespace
- RocksDbNet
- Assembly
- RocksDb.Net.dll
One operation read back out of a WriteBatch.
public readonly record struct WriteBatchEntry : IEquatable<WriteBatchEntry>
- Implements
- Inherited Members
Constructors
WriteBatchEntry(WriteBatchEntryKind, uint, byte[], byte[]?)
One operation read back out of a WriteBatch.
public WriteBatchEntry(WriteBatchEntryKind Kind, uint ColumnFamilyId, byte[] Key, byte[]? Value)
Parameters
KindWriteBatchEntryKindWhich operation this is.
ColumnFamilyIduintThe numeric id of the column family the operation applies to. Zero is the default family. Match it against Id, since the batch records ids rather than names. Meaningless when
Kindis LogData.Keybyte[]The key, or empty for LogData.
Valuebyte[]The value for a put, the operand for a merge, the blob for log data, and null for a delete.
Properties
ColumnFamilyId
The numeric id of the column family the operation applies to. Zero is the
default family. Match it against
Id, since the batch records ids rather than
names. Meaningless when Kind is
LogData.
public uint ColumnFamilyId { get; init; }
Property Value
Key
The key, or empty for LogData.
public byte[] Key { get; init; }
Property Value
- byte[]
Kind
Which operation this is.
public WriteBatchEntryKind Kind { get; init; }
Property Value
Value
The value for a put, the operand for a merge, the blob for log data, and null for a delete.
public byte[]? Value { get; init; }
Property Value
- byte[]