Click or drag to resize

PreparedStatementSetRoutingKey Method

Set the routing key for this query.

The routing key is a hint for token aware load balancing policies but is never mandatory. This method allows you to manually provide a routing key for this query.

Use this method ONLY if the partition keys are the same for all query executions (hard-coded parameters).

If the partition key is composite, you should provide multiple routing key components.

Namespace:  Dse
Assembly:  Dse (in Dse.dll) Version: 2.9.0
Syntax
C#
public PreparedStatement SetRoutingKey(
	params RoutingKey[] routingKeyComponents
)

Parameters

routingKeyComponents
Type: DseRoutingKey
the raw (binary) values to compose to obtain the routing key.

Return Value

Type: PreparedStatement
this PreparedStatement object.
See Also