Execute packet (Cassandra)
This packet is sent by the client to execute a prepared statement.
Properties
consistency (int): the level of consistency request for the execution (see Cassandra common flags)
consistencyName (string, read-only): the level of consistency request 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 prepared statement. 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 prepared statement should be executed
nowInSeconds (int): the current time (now) for the execution
queryID (byte[]): the ID of the prepared statement to execute
query (string, read-only): the text of the query for the prepared statement
metadataID (byte[]): the ID of the result set metadata
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