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: Dse
Assembly: Dse (in Dse.dll) Version: 2.2.0
Syntax
C#
public IEnumerable<Host> NewQueryPlan(
	string loggedKeyspace,
	IStatement query
)

Parameters

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

Return Value

Type: IEnumerableHost
the new query plan.

Implements

ILoadBalancingPolicyNewQueryPlan(String, IStatement)
See Also