FdbRawKeyRange

Namespace: FoundationDB.Client · struct

Implements: IFdbKeyRange, ISpanFormattable, IFormattable

Range where the "Begin" and "End" key are already encoded

Constructors

FdbRawKeyRange

FdbRawKeyRange(Slice begin, Slice end)

Methods

Contains

bool Contains(Slice key)

Tests if this range contains the given key

  • key — Key that is being tested

Returns: true if the key would be matched by this range.

bool Contains(ReadOnlySpan<byte> key)

Tests if this range contains the given key

  • key — Key that is being tested

Returns: true if the key would be matched by this range.

bool Contains<TKey>(in TKey key)

Tests if this range contains the given key

  • key — Key that is being tested

Returns: true if the key would be matched by this range.

ToBeginKey

Slice ToBeginKey()

Returns the encoded "Begin" key of this range

ToBeginSelector

KeySelector ToBeginSelector()

Returns a KeySelector that will resolve the first key in the range (inclusive)

This can be passed as the "begin" selector to .

ToEndKey

Slice ToEndKey()

Returns the encoded "End" key of this range

ToEndSelector

KeySelector ToEndSelector()

Returns a KeySelector that will resolve the last key in the range (exclusive)

This can be passed as the "end" selector to .

ToKeyRange

KeyRange ToKeyRange()

Encode this range into a binary KeyRange

ToString

string ToString()

string ToString(string format, IFormatProvider formatProvider = null)

TryFormat

bool TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format = null, IFormatProvider provider = null)

Fields

Begin

readonly Slice Begin

Begin key (inclusive)

End

readonly Slice End

End key (exclusive)