FdbTransactionLog.DirectoryKeyResolver

Namespace: FoundationDB.Filters.Logging · class

Implements: KeyResolver

Key resolver which replace key prefixes by the name of their enclosing directory subspace

Constructors

DirectoryKeyResolver

DirectoryKeyResolver(Dictionary<Slice, string> knownSubspaces)

Methods

BuildFromDirectoryLayer

static Task<DirectoryKeyResolver> BuildFromDirectoryLayer(IFdbReadOnlyTransaction tr, FdbDirectoryLayer directory)

Create a key resolver using the content of a DirectoryLayer as the map

Returns: Resolver that replace each directory prefix by its name

Resolve

string Resolve(Slice key)

Fields

Paths

readonly string[] Paths

Prefixes

readonly Slice[] Prefixes