KeySubspaceExtensions
Namespace: FoundationDB.Client · class
Extensions methods and helpers to work with Key Subspaces
Methods
ClearRange
static void ClearRange(IFdbTransaction trans, IKeySubspace subspace)
Clear the entire content of a subspace
ClearRangeAsync
static Task ClearRangeAsync(IFdbRetryable db, IKeySubspace subspace, CancellationToken ct)
Clear the entire content of a subspace
Contains
static bool Contains(IKeySubspace subspace, Slice absoluteKey)
Test if a key is inside the range of keys logically contained by this subspace
subspace— Subspace used for the testabsoluteKey— Key to test
Returns: True if the key can exist inside the current subspace.
Please note that this method does not test if the key actually exists in the database, only if the key is not outside the range of keys defined by the subspace.
Copy
static KeySubspace Copy(IKeySubspace subspace)
Create a copy of a generic subspace, sharing the same binary prefix