RiakClientDtUpdateSetT Method (RiakObjectId, SerializeObjectToByteArrayT, Byte, ListT, ListT, RiakDtUpdateOptions) |
Note: This API is now obsolete.
Update a Set Data Type object at the provided address.
Namespace:
RiakClient
Assembly:
RiakClient (in RiakClient.dll) Version: f9bb17a3f8ff6940b88010a52f202e3d55fe25c5
Syntax [ObsoleteAttribute("RiakDt is deprecated. Please use Commands/CRDT namespace.")]
public RiakDtSetResult DtUpdateSet<T>(
RiakObjectId objectId,
SerializeObjectToByteArray<T> serialize,
byte[] context,
List<T> adds = null,
List<T> removes = null,
RiakDtUpdateOptions options = null
)
[<ObsoleteAttribute("RiakDt is deprecated. Please use Commands/CRDT namespace.")>]
abstract DtUpdateSet :
objectId : RiakObjectId *
serialize : SerializeObjectToByteArray<'T> *
context : byte[] *
?adds : List<'T> *
?removes : List<'T> *
?options : RiakDtUpdateOptions
(* Defaults:
let _adds = defaultArg adds null
let _removes = defaultArg removes null
let _options = defaultArg options null
*)
-> RiakDtSetResult
[<ObsoleteAttribute("RiakDt is deprecated. Please use Commands/CRDT namespace.")>]
override DtUpdateSet :
objectId : RiakObjectId *
serialize : SerializeObjectToByteArray<'T> *
context : byte[] *
?adds : List<'T> *
?removes : List<'T> *
?options : RiakDtUpdateOptions
(* Defaults:
let _adds = defaultArg adds null
let _removes = defaultArg removes null
let _options = defaultArg options null
*)
-> RiakDtSetResult
Parameters
- objectId
- Type: RiakClient.ModelsRiakObjectId
The RiakObjectId of the set to update. - serialize
- Type: RiakClient.ModelsSerializeObjectToByteArrayT
A delegate to serialize the adds and removes lists from objects of type T to a byte[]. - context
- Type: SystemByte
The most recent known byte[] data type context for this object, to base this operation off of for causality merging. - adds (Optional)
- Type: System.Collections.GenericListT
A ListT of items to add to the set. - removes (Optional)
- Type: System.Collections.GenericListT
A ListT of items to remove from the set. - options (Optional)
- Type: RiakClient.ModelsRiakDtUpdateOptions
The RiakDtUpdateOptions responsible for configuring the semantics of this data type update request.
Type Parameters
- T
- The type of the objects being stored in the set.
Return Value
Type:
RiakDtSetResultA
RiakDtSetResult detailing the operation result, current context, and set values.
Implements
IRiakBatchClientDtUpdateSetT(RiakObjectId, SerializeObjectToByteArrayT, Byte, ListT, ListT, RiakDtUpdateOptions)Exceptions Remarks Removal of any item from the set requires that the
context be non-null, or else an
ArgumentNullException will be thrown.
See Also