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

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+

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.1
C#
public void Execute(
	BatchPolicy batchPolicy,
	BatchUDFPolicy udfPolicy,
	BatchRecordSequenceListener listener,
	Key[] keys,
	string packageName,
	string functionName,
	params Value[] functionArgs
)

Parameters

batchPolicy  BatchPolicy
batch configuration parameters, pass in null for defaults
udfPolicy  BatchUDFPolicy
udf configuration parameters, pass in null for defaults
listener  BatchRecordSequenceListener
where to send results
keys  Key
array of unique record identifiers
packageName  String
server package name where user defined function resides
functionName  String
user defined function
functionArgs  Value
arguments passed in to user defined function

Implements

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

Exceptions

AerospikeExceptionif queue is full

See Also