C# Class FoundationDB.Layers.Blobs.FdbHashSetCollection

Represents a collection of dictionaries of fields.
Exibir arquivo Open project: BedeGaming/foundationdb-dotnet-client

Public Methods

Method 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

Protected Methods

Method 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 method

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

DeleteValue() public method

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

FdbHashSetCollection() public method

public FdbHashSetCollection ( FdbSubspace subspace ) : FoundationDB.Client
subspace FdbSubspace
return FoundationDB.Client

GetAsync() public method

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
return Slice>>.Task

GetAsync() public method

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
return Slice>>.Task

GetFieldKey() protected method

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

GetKey() protected method

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

GetKeys() public method

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
return Task>

GetValueAsync() public method

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
return Task

ParseFieldKey() protected method

protected ParseFieldKey ( IFdbTuple key ) : string
key IFdbTuple
return string

Set() public method

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

SetValue() public method

public SetValue ( IFdbTransaction trans, IFdbTuple id, string field, Slice value ) : void
trans IFdbTransaction
id IFdbTuple
field string
value Slice
return void