Asynchronously execute query for specified partitions. The query policy's
dictate how many nodes can be queried in parallel.
The default is to query all nodes in parallel.
maxConcurrentNodes
This method schedules the node's query commands with channel selectors and returns. Selector threads will process the commands and send the results to the listener.
Each record result is returned in separate OnRecord() calls.
Requires server version 6.0+ if using a secondary index query.
Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 5.1.0.0 (5.1.0)
Syntax
C#
public void QueryPartitions( QueryPolicy policy, RecordSequenceListener listener, Statement statement, PartitionFilter partitionFilter )
Parameters
- policy
- Type: Aerospike.ClientQueryPolicy
query configuration parameters, pass in null for defaults - listener
- Type: Aerospike.ClientRecordSequenceListener
where to send results - statement
- Type: Aerospike.ClientStatement
query definition - partitionFilter
- Type: Aerospike.ClientPartitionFilter
filter on a subset of data partitions
Implements
IAsyncClientQueryPartitions(QueryPolicy, RecordSequenceListener, Statement, PartitionFilter)Exceptions
Exception | Condition |
---|---|
AerospikeException | if query fails |
See Also