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.
Namespace: Aerospike.ClientThe 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.
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 3.6.7.0 (3.6.7)
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:
System String
server package where user defined function resides
- functionName
- Type:
System String
aggregation function name
- functionArgs
- Type: Aerospike.Client Value
arguments to pass to function name, if any
Exceptions
Exception | Condition |
---|---|
Aerospike.Client AerospikeException | if query fails |
See Also