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: 5.1.1.0 (5.1.1)
Syntax
C#
ResultSet QueryAggregate( QueryPolicy policy, Statement statement, string packageName, string functionName, params Value[] functionArgs )
Parameters
- policy
- Type: Aerospike.ClientQueryPolicy
query configuration parameters, pass in null for defaults - statement
- Type: Aerospike.ClientStatement
query definition - packageName
- Type: SystemString
server package where user defined function resides - functionName
- Type: SystemString
aggregation function name - functionArgs
- Type: Aerospike.ClientValue
arguments to pass to function name, if any
Return Value
Type: ResultSetExceptions
Exception | Condition |
---|---|
AerospikeException | if query fails |
See Also