Click or drag to resize

IStatementKeyspace Property

Returns the keyspace this query operates on.

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.

Namespace:  Cassandra
Assembly:  Cassandra (in Cassandra.dll) Version: 3.13.0
string Keyspace { get; }

Property Value

Type: String
Consider using a ISession connected to single keyspace using Connect(String).
See Also