cassandra-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mathieu D'Amours <math...@damours.org>
Subject Implementing a driver for cassandra native protocol v2
Date Sat, 26 Oct 2013 18:07:48 GMT
Hello,

I'm currently implementing an Erlang driver for Cassandra's binary protocol v2. Most of it
is straightforward, but I came across this part in [4.1.4. QUERY]:

> <flags> is a [byte] whose bits define the options for this query and
>     in particular influence what the remainder of the message contains.
>     A flag is set if the bit corresponding to its `mask` is set. Supported
>     flags are, given there mask:
>	0x01 : ...
>	0x02 : ...
>	0x03 : ...
>	0x04 : ...

Does that mean that the 0x01 flag is set if `1 << 0` is set? and 0x03 is set if `1 <<
2` is set?

Thanks in advance

Mathieu
Mime
View raw message