AsyncClientExecute Method (BatchPolicy, BatchUDFPolicy, BatchRecordSequenceListener, Key, String, String, Value)

Aerospike
Asynchronously execute user defined function on server for each key. This method schedules the execute command with a channel selector and returns. Another thread will process the command and send the results to the listener. Each record result is returned in separate OnRecord() calls.

The package name is used to locate the udf file location:

udf file = <server udf dir>/<package name>.lua

Requires server version 6.0+

Namespace:  Aerospike.Client
Assembly:  AerospikeClient (in AerospikeClient.dll) Version: 5.1.1.0 (5.1.1)
Syntax

C#
public void Execute(
	BatchPolicy batchPolicy,
	BatchUDFPolicy udfPolicy,
	BatchRecordSequenceListener listener,
	Key[] keys,
	string packageName,
	string functionName,
	params Value[] functionArgs
)

Parameters

batchPolicy
Type: Aerospike.ClientBatchPolicy
batch configuration parameters, pass in null for defaults
udfPolicy
Type: Aerospike.ClientBatchUDFPolicy
udf configuration parameters, pass in null for defaults
listener
Type: Aerospike.ClientBatchRecordSequenceListener
where to send results
keys
Type: Aerospike.ClientKey
array of unique record identifiers
packageName
Type: SystemString
server package name where user defined function resides
functionName
Type: SystemString
user defined function
functionArgs
Type: Aerospike.ClientValue
arguments passed in to user defined function

Implements

IAsyncClientExecute(BatchPolicy, BatchUDFPolicy, BatchRecordSequenceListener, Key, String, String, Value)
Exceptions

ExceptionCondition
AerospikeExceptionif queue is full
See Also

Reference