Table of Contents

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

Kind WriteBatchEntryKind

Which operation this is.

ColumnFamilyId uint

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.

Key byte[]

The key, or empty for LogData.

Value byte[]

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

uint

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

WriteBatchEntryKind

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[]