Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add inet support in binary protocol

patch by slebresne; reviewed by thepaul for CASSANDRA-4627
  • Loading branch information...
commit c6ddbea4386d123354b07fb8ad7316abe483c0c5 1 parent 73a4b46
@pcmanus pcmanus authored
2  doc/cql3/CQL.textile
@@ -652,6 +652,7 @@ bc(syntax)..
| decimal
| double
| float
+ | inet
| int
| text
| timestamp
@@ -672,6 +673,7 @@ p. The following table gives additional informations on the native data types:
|@decimal@ |Variable-precision decimal|
|@double@ |64-bit IEEE-754 floating point|
|@float@ |32-bit IEEE-754 floating point|
+|@inet@ |An IP address. It can be either 4 bytes long (IPv4) or 16 bytes long (IPv6)|
|@int@ |32-bit signed int|
|@text@ |UTF8 encoded string|
|@timestamp@|A timestamp. See "Working with dates":#usingdates below for more information.|
1  doc/native_protocol.spec
@@ -384,6 +384,7 @@ Table of Contents
0x000D Varchar
0x000E Varint
0x000F Timeuuid
+ 0x0010 Inet
0x0020 List: the value is an [option], representing the type
of the elements of the list.
0x0021 Map: the value is two [option], representing the types of the
1  src/java/org/apache/cassandra/transport/
@@ -48,6 +48,7 @@
VARCHAR (13, UTF8Type.instance),
VARINT (14, IntegerType.instance),
TIMEUUID (15, TimeUUIDType.instance),
+ INET (16, InetAddressType.instance),
LIST (32, null),
MAP (33, null),
SET (34, null);
Please sign in to comment.
Something went wrong with that request. Please try again.