Click or drag to resize
BatchStatementSetRoutingKey Method
Set the routing key for this query.

This method allows to manually provide a routing key for this query. It is thus optional since the routing key is only an hint for token aware load balancing policy but is never mandatory.

If the partition key for the query is composite, use the #setRoutingKey(ByteBuffer...) method instead to build the routing key.

Namespace: Cassandra
Assembly: Cassandra (in Cassandra.dll) Version: 3.0.9 (git 5ca22bb)
Syntax
C#
public BatchStatement SetRoutingKey(
	params RoutingKey[] routingKeyComponents
)

Parameters

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

Return Value

Type: BatchStatement
this BatchStatement object.
See Also