FdbDirectoryPartition

Namespace: FoundationDB.Client · class

Implements: FdbDirectorySubspace, IKeySubspace, ISpanEncodable, IEquatable<IKeySubspace>, IComparable<IKeySubspace>, ISpanFormattable, IFormattable, IFdbDirectory

Directory Partition that will use its own Directory Layer instance to manage any subdirectories

Properties

IsPartition

bool IsPartition { get; }

Regular directory subspaces are not a partition.

Methods

Contains

bool Contains(ReadOnlySpan<byte> key)

Tests whether the specified absoluteKey starts with this subspace prefix, indicating that the Subspace logically contains absoluteKey.

The key is not contained by any Subspace, so subspace.Contains(Slice.Nil) will always return false

ToRange

FdbSubspaceKeyRange ToRange(bool inclusive = false)

Return a range that will match all the keys in this subspace, including the prefix itself

Returns: Return the range: Key <= x <= Increment(Key)

ToString

string ToString()

Printable representation of this subspace

Fields

LayerId

const string LayerId

"partition"