FdbTenantMetadata

Namespace: FoundationDB.Client · class

Implements: IEquatable<FdbTenantMetadata>

Constructors

FdbTenantMetadata

FdbTenantMetadata()

Properties

Id

long Id { get; set; }

Unique internal identifier of this tenant

Name

FdbTenantName Name { get; set; }

Name of the tenant

Prefix

Slice Prefix { get; set; }

Key prefix (in the global keyspace) of this tenant

Any transaction operation on this tenant will add/remove this prefix to keys passed as parameters or returned from range or key resolution queries.

For example, if the tenant as prefix `some_prefix`, and a transaction on this tenant reads the key `HELLO`, it will actually read the global key `some_prefixHELLO`.

Another tenant with prefix `other_prefix` reading the same key, will read the global key `other_prefixHELLO` which is not shared.

Range

KeyRange Range { get; set; }

Range that encompass all the keys of this tenant (from the global keyspace)

Should only be used for admin or maintenance operation, from the global keyspace!

Raw

Slice Raw { get; set; }

Raw metadata value, as stored in the database

Methods

<Clone>$

FdbTenantMetadata <Clone>$()

Equals

bool Equals(object obj)

bool Equals(FdbTenantMetadata other)

GetHashCode

int GetHashCode()

GetSubspace

FdbTenantSubspace GetSubspace(ISubspaceContext context = null)

ToString

string ToString()