IAerospikeClient.Operate(BatchPolicy, BatchWritePolicy, Key[], Operation[]) Method

Perform read/write operations on multiple keys. If a key is not found, the corresponding result resultCode will be KEY_NOT_FOUND_ERROR.

Requires server version 6.0+

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 8.0.1+e35566e493546c0887ebb841c8e2a2c6a7cbde18
C#
BatchResults Operate(
	BatchPolicy batchPolicy,
	BatchWritePolicy writePolicy,
	Key[] keys,
	params Operation[] ops
)

Parameters

batchPolicy  BatchPolicy
batch configuration parameters, pass in null for defaults
writePolicy  BatchWritePolicy
write configuration parameters, pass in null for defaults
keys  Key[]
array of unique record identifiers
ops  Operation[]
database operations to perform

Return Value

BatchResults

Exceptions

AerospikeException.BatchRecordArraywhich contains results for keys that did complete

See Also