C# Class FoundationDB.Layers.Blobs.FdbHashSetCollection

Represents a collection of dictionaries of fields.
Afficher le fichier Open project: BedeGaming/foundationdb-dotnet-client

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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

Method Details

Delete() public méthode

Remove all fields of an hashset
public Delete ( IFdbTransaction trans, IFdbTuple id ) : void
trans IFdbTransaction
id IFdbTuple
Résultat void

DeleteValue() public méthode

Remove a field of an hashset
public DeleteValue ( IFdbTransaction trans, IFdbTuple id, string field ) : void
trans IFdbTransaction
id IFdbTuple
field string
Résultat void

FdbHashSetCollection() public méthode

public FdbHashSetCollection ( FdbSubspace subspace ) : FoundationDB.Client
subspace FdbSubspace
Résultat FoundationDB.Client

GetAsync() public méthode

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
Résultat Slice>>.Task

GetAsync() public méthode

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
Résultat Slice>>.Task

GetFieldKey() protected méthode

Returns the key of a specific field of an HashSet: (subspace, id, field, )
protected GetFieldKey ( IFdbTuple id, string field ) : Slice
id IFdbTuple
field string
Résultat Slice

GetKey() protected méthode

Returns the key prefix of an HashSet: (subspace, id, )
protected GetKey ( IFdbTuple id ) : Slice
id IFdbTuple
Résultat Slice

GetKeys() public méthode

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
Résultat Task>

GetValueAsync() public méthode

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
Résultat Task

ParseFieldKey() protected méthode

protected ParseFieldKey ( IFdbTuple key ) : string
key IFdbTuple
Résultat string

Set() public méthode

public Set ( IFdbTransaction trans, IFdbTuple id, Slice>.IEnumerable fields ) : void
trans IFdbTransaction
id IFdbTuple
fields Slice>.IEnumerable
Résultat void

SetValue() public méthode

public SetValue ( IFdbTransaction trans, IFdbTuple id, string field, Slice value ) : void
trans IFdbTransaction
id IFdbTuple
field string
value Slice
Résultat void