Aerospike LINDPad Driver

AUDFAccess..::..Execute Method (Key, array<Object>[]()[][])

Executes the UDF based on key and functionArgs

Namespace:  Aerospike.Database.LINQPadDriver.Extensions
Assembly:  Aerospike.Database.LINQPadDriver (in Aerospike.Database.LINQPadDriver.dll)

Syntax


public Object Execute(
	Key key,
	params Object[] functionArgs
)

Parameters

key
Type: Key
The primary key for the target set
functionArgs
Type: array<Object>[]()[][]
The values that are passed to the UDF. These values can be a Value or a C# native type.

Return Value

The value returned from the UDF or null.

Examples


Executing a UDF that will create a new record in namespace and set "MyNS.MySet"
C#
Key key = new Key("MyNS", "MySet", "udfkey1");
BinName bin = new BinName("udfbin1", "string value");

this.Execute(Value.Get(bin.name), bin.value);

//Check to see if record was actually written
   Record record = client.Get(null, key, bin.name);
AssertBinEqual(key, record, bin);