C# Класс FoundationDB.Layers.Blobs.FdbHashSetCollection

Represents a collection of dictionaries of fields.
Показать файл Открыть проект

Открытые методы

Метод Описание
Delete ( IFdbTransaction trans, IFdbTuple id ) : void

Remove all fields of an hashset

DeleteValue ( IFdbTransaction trans, IFdbTuple id, string field ) : void

Remove a field of an hashset

FdbHashSetCollection ( FdbSubspace subspace ) : FoundationDB.Client
GetAsync ( IFdbReadOnlyTransaction trans, IFdbTuple id ) : Slice>>.Task

Return all fields of an hashset

GetAsync ( IFdbReadOnlyTransaction trans, IFdbTuple id, string fields ) : Slice>>.Task

Return one or more fields of an hashset

GetKeys ( IFdbReadOnlyTransaction trans, IFdbTuple id, CancellationToken cancellationToken = default(CancellationToken) ) : Task>

Return the list the names of all fields of an hashset

GetValueAsync ( IFdbReadOnlyTransaction trans, IFdbTuple id, string field ) : Task

Return the value of a specific field of an hashset

Set ( IFdbTransaction trans, IFdbTuple id, Slice>.IEnumerable fields ) : void
SetValue ( IFdbTransaction trans, IFdbTuple id, string field, Slice value ) : void

Защищенные методы

Метод Описание
GetFieldKey ( IFdbTuple id, string field ) : Slice

Returns the key of a specific field of an HashSet: (subspace, id, field, )

GetKey ( IFdbTuple id ) : Slice

Returns the key prefix of an HashSet: (subspace, id, )

ParseFieldKey ( IFdbTuple key ) : string

Описание методов

Delete() публичный Метод

Remove all fields of an hashset
public Delete ( IFdbTransaction trans, IFdbTuple id ) : void
trans IFdbTransaction
id IFdbTuple
Результат void

DeleteValue() публичный Метод

Remove a field of an hashset
public DeleteValue ( IFdbTransaction trans, IFdbTuple id, string field ) : void
trans IFdbTransaction
id IFdbTuple
field string
Результат void

FdbHashSetCollection() публичный Метод

public FdbHashSetCollection ( FdbSubspace subspace ) : FoundationDB.Client
subspace FdbSubspace
Результат FoundationDB.Client

GetAsync() публичный Метод

Return all fields of an hashset
public GetAsync ( IFdbReadOnlyTransaction trans, IFdbTuple id ) : Slice>>.Task
trans IFdbReadOnlyTransaction Transaction that will be used for this request
id IFdbTuple Unique identifier of the hashset
Результат Slice>>.Task

GetAsync() публичный Метод

Return one or more fields of an hashset
public GetAsync ( IFdbReadOnlyTransaction trans, IFdbTuple id, string fields ) : Slice>>.Task
trans IFdbReadOnlyTransaction Transaction that will be used for this request
id IFdbTuple Unique identifier of the hashset
fields string List of the fields to read
Результат Slice>>.Task

GetFieldKey() защищенный Метод

Returns the key of a specific field of an HashSet: (subspace, id, field, )
protected GetFieldKey ( IFdbTuple id, string field ) : Slice
id IFdbTuple
field string
Результат Slice

GetKey() защищенный Метод

Returns the key prefix of an HashSet: (subspace, id, )
protected GetKey ( IFdbTuple id ) : Slice
id IFdbTuple
Результат Slice

GetKeys() публичный Метод

Return the list the names of all fields of an hashset
public GetKeys ( IFdbReadOnlyTransaction trans, IFdbTuple id, CancellationToken cancellationToken = default(CancellationToken) ) : Task>
trans IFdbReadOnlyTransaction Transaction that will be used for this request
id IFdbTuple Unique identifier of the hashset
cancellationToken System.Threading.CancellationToken
Результат Task>

GetValueAsync() публичный Метод

Return the value of a specific field of an hashset
public GetValueAsync ( IFdbReadOnlyTransaction trans, IFdbTuple id, string field ) : Task
trans IFdbReadOnlyTransaction Transaction that will be used for this request
id IFdbTuple Unique identifier of the hashset
field string Name of the field to read
Результат Task

ParseFieldKey() защищенный Метод

protected ParseFieldKey ( IFdbTuple key ) : string
key IFdbTuple
Результат string

Set() публичный Метод

public Set ( IFdbTransaction trans, IFdbTuple id, Slice>.IEnumerable fields ) : void
trans IFdbTransaction
id IFdbTuple
fields Slice>.IEnumerable
Результат void

SetValue() публичный Метод

public SetValue ( IFdbTransaction trans, IFdbTuple id, string field, Slice value ) : void
trans IFdbTransaction
id IFdbTuple
field string
value Slice
Результат void