AerospikeClient QueryAggregate Method Aerospike
Execute query, apply statement's aggregation function, and return result iterator. The query executor puts results on a queue in separate threads. The calling thread concurrently pops results off the queue through the result iterator.

The aggregation function is called on both server and client (final reduce). Therefore, the Lua script files must also reside on both server and client. The package name is used to locate the udf file location:

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

This method is only supported by Aerospike 3 servers.

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 3.0.0.0 (3.0.12)
Syntax

Parameters

policy
Type: Aerospike.Client QueryPolicy
generic configuration parameters, pass in null for defaults
statement
Type: Aerospike.Client Statement
database query command
packageName
Type: OnlineSystem String
server package where user defined function resides
functionName
Type: OnlineSystem String
aggregation function name
functionArgs
Type:  Aerospike.Client Value 
arguments to pass to function name, if any
Exceptions

See Also