AsyncClientProxyQuery(QueryPolicy, CancellationToken, Statement) Method

Execute query on all server nodes and return records via the listener. This method will block until the query is complete. Listener callbacks are made within the scope of this call.

If maxConcurrentNodes is not 1, the supplied listener must handle shared data in a thread-safe manner, because the listener will be called by multiple query threads (one thread per node) in parallel.

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#
public Task<RecordSet> Query(
	QueryPolicy policy,
	CancellationToken token,
	Statement statement
)

Parameters

policy  QueryPolicy
query configuration parameters, pass in null for defaults
token  CancellationToken
cancellation token
statement  Statement
query definition

Return Value

TaskRecordSet

Exceptions

AerospikeExceptionif query fails

See Also