cassandra.cql.utils

Members

Aliases

StringList
alias StringList = string[]

uuid A 16 bytes long uuid. [string list] A short n, followed by n string.

StringMap
alias StringMap = string[string]

[string map] A short n, followed by n pair <k><v> where <k> and <v> are string.

StringMultiMap
alias StringMultiMap = string[][string]

[string multimap] A short n, followed by n pair <k><v> where <k> is a string and <v> is a [string list].

Enums

Consistency
enum Consistency

[option list] A short n, followed by n option. inet An address (ip and port) to a node. It consists of one byte n, that represents the address size, followed by n byte representing the IP address (in practice n can only be either 4 (IPv4) or 16 (IPv6)), following by one int representing the port. consistency A consistency level specification. This is a short representing a consistency level with the following correspondance: 0x0000 ANY 0x0001 ONE 0x0002 TWO 0x0003 THREE 0x0004 QUORUM 0x0005 ALL 0x0006 LOCAL_QUORUM 0x0007 EACH_QUORUM

Functions

readIntBytes
ubyte[] readIntBytes(TCPConnection s, ref int counter)

bytes A int n, followed by n bytes if n >= 0. If n < 0, no byte should follow and the value represented is null.

readLongString
string readLongString(TCPConnection s, ref int counter)

[long string] An int n, followed by n bytes representing an UTF-8 string.

readRawBytes
ubyte[] readRawBytes(TCPConnection s, ref int counter, int len)

string A short n, followed by n bytes representing an UTF-8 string.

readShort
short readShort(TCPConnection s, ref int counter)

short A 2 bytes unsigned integer

readShortBytes
ubyte[] readShortBytes(TCPConnection s, ref int counter)

[short bytes] A short n, followed by n bytes if n >= 0.

Structs

FrameHeader
struct FrameHeader

*2. Frame header

Option
struct Option

option A pair of <id><value> where <id> is a short representing the option id and <value> depends on that option (and can be of size 0). The supported id (and the corresponding <value>) will be described when this is used.

Meta