IAsyncClientExecute Method (BatchPolicy, BatchUDFPolicy, BatchRecordArrayListener, 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.

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#
void Execute(
	BatchPolicy batchPolicy,
	BatchUDFPolicy udfPolicy,
	BatchRecordArrayListener 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.ClientBatchRecordArrayListener
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
Exceptions

ExceptionCondition
AerospikeExceptionif queue is full
See Also

Reference