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.
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 126.96.36.199 (5.1.1)
public ResultSet QueryAggregate( QueryPolicy policy, Statement statement )
- Type: Aerospike.ClientQueryPolicy
query configuration parameters, pass in null for defaults
- Type: Aerospike.ClientStatement
query definition with aggregate functions already initialized by SetAggregateFunction().
Return ValueType: ResultSet
|AerospikeException||if query fails|