AerospikeClient QueryAggregate Method (QueryPolicy, Statement, String, String,  Value )Aerospike
Execute query, apply statement's aggregation function, and return result iterator. The aggregation function should be located in a Lua script file that can be found from the "LuaConfig.PackagePath" paths static variable. The default package path is "udf/?.lua" where "?" is the packageName.

The query executor puts results on a queue in separate threads. The calling thread concurrently pops results off the queue through the ResultSet iterator. The aggregation function is called on both server and client (final reduce). Therefore, the Lua script file must also reside on both server and client.

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 3.6.0.0 (3.6.1)
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