IAsyncClientQueryPartitions(QueryPolicy, RecordSequenceListener, Statement, PartitionFilter) Method

Asynchronously execute query for specified partitions. The query policy's
C#
maxConcurrentNodes
dictate how many nodes can be queried in parallel. The default is to query all nodes in parallel.

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.

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.1
C#
void QueryPartitions(
	QueryPolicy policy,
	RecordSequenceListener listener,
	Statement statement,
	PartitionFilter partitionFilter
)

Parameters

policy  QueryPolicy
query configuration parameters, pass in null for defaults
listener  RecordSequenceListener
where to send results
statement  Statement
query definition
partitionFilter  PartitionFilter
filter on a subset of data partitions

Exceptions

AerospikeExceptionif query fails

See Also