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: CassandraAssembly: Cassandra (in Cassandra.dll) Version: 3.4.0
Syntax 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:
IEnumerableHosta 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