Click or drag to resize
RiakClientDtUpdateMapT Method (RiakObjectId, SerializeObjectToByteArrayT, Byte, ListRiakDtMapField, ListMapUpdate, RiakDtUpdateOptions)

Note: This API is now obsolete.

Update a Map 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 RiakDtMapResult DtUpdateMap<T>(
	RiakObjectId objectId,
	SerializeObjectToByteArray<T> serialize,
	byte[] context,
	List<RiakDtMapField> removes = null,
	List<MapUpdate> updates = null,
	RiakDtUpdateOptions options = null
)

Parameters

objectId
Type: RiakClient.ModelsRiakObjectId
The RiakObjectId of the map to update.
serialize
Type: RiakClient.ModelsSerializeObjectToByteArrayT
A delegate to serialize the updates and removes operation 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.
removes (Optional)
Type: System.Collections.GenericListRiakDtMapField
A ListT of RiakDtMapField to specify which fields to remove.
updates (Optional)
Type: System.Collections.GenericListMapUpdate
A ListT of MapUpdate to specify what updates to perform on the map.
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 map.

Return Value

Type: RiakDtMapResult
A RiakDtMapResult detailing the operation result, current context, and map values.

Implements

IRiakBatchClientDtUpdateMapT(RiakObjectId, SerializeObjectToByteArrayT, Byte, ListRiakDtMapField, ListMapUpdate, RiakDtUpdateOptions)
Exceptions
ExceptionCondition
ArgumentNullExceptioncontext cannot be null if removing any field from the map, nested maps, or removing any item from nested sets.
See Also