IFdbKeyRange
Namespace: FoundationDB.Client · interface
Implements: ISpanFormattable, IFormattable
Range of keys, defined by a lower and upper bound.
Methods
Contains
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(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<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