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: Cassandra
Assembly: Cassandra (in Cassandra.dll) Version: 3.4.0
Syntax
C#
public PreparedStatement SetRoutingKey(
	params RoutingKey[] routingKeyComponents
)

Parameters

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

Return Value

Type: PreparedStatement
this PreparedStatement object.
See Also