Startup packet (Cassandra)
This packet is sent by the client to initiate a connection. Most clients will start with an Options packet to determine the server's capabilities, and then send a Startup packet. The server will respond with a Ready packet if there is no authentication, or with an Authenticate packet if there is.
Properties
entries (list<StringMap>): a list of name/value pairs. It is usually easier to use the methods to retrieve and change these.
Methods
string getEntry(string name): returns the value of the entry with the given name, if present
string setEntry(string name, string value): sets the value of the given entry, creating a new one if necessary
boolean removeEntry(string name): removes the entry if present. Returns true if the specified entry existed and was removed.
StringMap object
Methods
string getName(): returns the key of the key/value pair
void setName(string): sets the key of the key/value pair
string getValue(): returns the value of the key/value pair
void setValue(string): sets the value of the key/value pair
Common properties
The exact properties sent to the server in a Startup packet are somewhat driver-dependent, but the following properties are the most common:
CQL_VERSION: the version of CQL that the client wants to use, e.g. 3.0.0. This is the only required property.
DRIVER_NAME: the name of the driver, e.g. DataStax Java Driver
DRIVER_VERSION: the version of the driver, e.g. 3.6.0
COMPRESSION: the type of compression to be used in the protocol, if any. Normally one of none, lz4, or snappy