Query packet (Cassandra)
This packet is sent by the client to execute a query.
Properties
query (string): the text of the query to execute immediately
consistency (int): the level of consistency for the execution of the query (see Cassandra common flags)
consistencyName (string, read-only): the level of consistency requested for the execution, as a readable string
flagSkipMetadata (boolean): if true, the packet does not contain metadata.
paramValues (list<QueryParameterValue>): the values for the parameters in the query, if any. It is usually easier to use getParameter() and setParameter() -- see below.
resultPageSize (int): the page size
pagingState (byte[]): the paging state
serialConsistency (int): the level of consistency request for the serial phase of conditional updates (see Cassandra common flags)
serialConsistencyName (string, read-only): the serialConsistency as a readable string
defaultTimestamp (long): the default timestamp for the query, in microseconds
keyspaceName (string): the keyspace in which the query should be executed
nowInSeconds (int): the current time (now) for the execution
Methods
object getParameter(int): returns the value of the specified parameter (0-based)
object getParameter(string): returns the value of the specified parameter, if parameters have names
void setParameter(int, object): sets the value of the specified parameter
void setParameter(string, object ): sets the value of the specified parameter by name, if parameters have names