Click or drag to resize
StatementSetHost Method
Sets the Host that should handle this query.

In the general case, use of this method is heavily discouraged and should only be used in the following cases:

  • Querying node-local tables, such as tables in the system and system_views keyspaces.
  • Applying a series of schema changes, where it may be advantageous to execute schema changes in sequence on the same node.

Configuring a specific host causes the configured ILoadBalancingPolicy to be completely bypassed. However, if the load balancing policy dictates that the host is at distance Ignored or there is no active connectivity to the host, the request will fail with a NoHostAvailableException.

Namespace: Dse
Assembly: Dse (in Dse.dll) Version: 2.4.0
Syntax
C#
public IStatement SetHost(
	Host host
)

Parameters

host
Type: DseHost
The host that should be used to handle executions of this statement or null to delegate to the configured load balancing policy.

Return Value

Type: IStatement
this instance
See Also