cassandra.cql.utils

Undocumented in source.

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].

Classes

Authenticator
class Authenticator
Undocumented in source.
CQLException
class CQLException
Undocumented in source.
CQLProtocolException
class CQLProtocolException
Undocumented in source.
NotImplementedException
class NotImplementedException
Undocumented in source.

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

append
void append(R appender, Args args)
Undocumented in source. Be warned that the author may not have intended to support it.
appendIntBytes
void appendIntBytes(R appender, T data)
Undocumented in source. Be warned that the author may not have intended to support it.
appendLongString
void appendLongString(R appender, string data)
Undocumented in source. Be warned that the author may not have intended to support it.
appendOverride
void appendOverride(R appender, StringMap sm)
Undocumented in source. Be warned that the author may not have intended to support it.
appendOverride
void appendOverride(R appender, Consistency c)
Undocumented in source. Be warned that the author may not have intended to support it.
appendOverride
void appendOverride(R appender, bool b)
Undocumented in source. Be warned that the author may not have intended to support it.
appendOverride
void appendOverride(R appender, string[] strs)
Undocumented in source. Be warned that the author may not have intended to support it.
appendRawBytes
void appendRawBytes(R appender, T data)
Undocumented in source. Be warned that the author may not have intended to support it.
appendShortBytes
void appendShortBytes(R appender, T data)
Undocumented in source. Be warned that the author may not have intended to support it.
getAuthenticator
Authenticator getAuthenticator(string type)
Undocumented in source. Be warned that the author may not have intended to support it.
getIntLength
int getIntLength(Appender!(ubyte[]) appender)
Undocumented in source. Be warned that the author may not have intended to support it.
log
void log(string s, Args args)
Undocumented in source. Be warned that the author may not have intended to support it.
readBigEndian
T readBigEndian(TCPConnection conn, int counter)
Undocumented in source. Be warned that the author may not have intended to support it.
readByte
byte readByte(TCPConnection s, int counter)
Undocumented in source. Be warned that the author may not have intended to support it.
readFrameHeader
FrameHeader readFrameHeader(TCPConnection s, int counter)
Undocumented in source. Be warned that the author may not have intended to support it.
readIntBytes
ubyte[] readIntBytes(TCPConnection s, 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.

readIntNotNULL
int readIntNotNULL(int ptr, TCPConnection s, int counter)
Undocumented in source. Be warned that the author may not have intended to support it.
readLongString
string readLongString(TCPConnection s, int counter)

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

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

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

readShort
short readShort(TCPConnection s, int counter)

short A 2 bytes unsigned integer

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

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

readShortString
string readShortString(TCPConnection s, int counter)
Undocumented in source. Be warned that the author may not have intended to support it.
readStringList
StringList readStringList(TCPConnection s, int counter)
Undocumented in source. Be warned that the author may not have intended to support it.
readStringMultiMap
StringMultiMap readStringMultiMap(TCPConnection s, int counter)
Undocumented in source. Be warned that the author may not have intended to support it.
toCQLString
string toCQLString(T value)
Undocumented in source. Be warned that the author may not have intended to support it.

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.

Templates

bestCassandraType
template bestCassandraType(T)
Undocumented in source.

Meta