Note that not all Statement implementations specify on which keyspace they operate on
so this method can return null. If null, it will operate on the default keyspace set during initialization (if it was set).
The keyspace returned is used as a hint for token-aware routing.
Note that enabling query trace introduces server-side overhead by storing request information, so it's
recommended that you only enable query tracing when trying to identify possible issues / debugging.
Declaration
public QueryTrace QueryTrace { get; protected set; }
The routing key (in binary raw form) to use for token aware routing of this
query.
The routing key is optional in the sense that implementers are
free to return null. The routing key is an hint used for token
aware routing (see
TokenAwarePolicy), and if
provided should correspond to the binary value for the query partition key.
However, not providing a routing key never causes a query to fail and if the
load balancing policy used is not token aware, then the routing key can be
safely ignored.