Click or drag to resize
TokenAwarePolicyNewQueryPlan Method
Returns the hosts to use for a new query.

The returned plan will first return replicas (whose HostDistance for the child policy is Local) for the query if it can determine them (i.e. mainly if IStatement.RoutingKey is not null). Following what it will return the plan of the child policy.

Namespace: Cassandra
Assembly: Cassandra (in Cassandra.dll) Version: 3.2.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
the new query plan.

Implements

ILoadBalancingPolicyNewQueryPlan(String, IStatement)
See Also