Click or drag to resize

RoundRobinPolicyNewQueryPlan Method

Returns the hosts to use for a new query.

The returned plan will try each known host of the cluster. Upon each call to this method, the ith host of the plans returned will cycle over all the host of the cluster in a round-robin fashion.

Namespace:  Cassandra
Assembly:  Cassandra (in Cassandra.dll) Version: 3.11.0
Syntax
C#
public IEnumerable<Host> NewQueryPlan(
	string keyspace,
	IStatement query
)

Parameters

keyspace
Type: SystemString
Keyspace on which the query is going to be executed
query
Type: CassandraIStatement
the query for which to build the plan.

Return Value

Type: IEnumerableHost
a new query plan, i.e. an iterator indicating which host to try first for querying, which one to use as failover, etc...

Implements

ILoadBalancingPolicyNewQueryPlan(String, IStatement)
See Also