PreparedStatementSetRoutingKey Method |
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
public PreparedStatement SetRoutingKey( params RoutingKey[] routingKeyComponents )