Basics
Feature Compatibility
- Cassandra 2.0+ is required for parameterized queries, prepared statements, paging, and batches. Cassandra 1.2 does NOT support these features.
- Cassandra 2.1+ is required for nested collections, UDTs, tuples, and client-side timestamps. Cassandra 1.2 and 2.0 do NOT support these features.
Datatypes Mapping
| Cassandra Type(s) | Driver Type | Supported Versions | 
|---|---|---|
| int | cass_int32_t | 1.2+ | 
| bigint,counter,timestamp | cass_int64_t | 1.2+ | 
| float | cass_float_t | 1.2+ | 
| double | cass_double_t | 1.2+ | 
| boolean | cass_boot_t | 1.2+ | 
| ascii,text,varchar | const char* | 1.2+ | 
| blob,varint | const cass_byte_t* | 1.2+ | 
| uuid,timeuuid | CassUuid | 1.2+ | 
| inet | CassInet | 1.2+ | 
| decimal | const cass_byte_t* (varint) and a cass_int32_t (scale) | 1.2+ | 
| list,map,set | CassCollection | 1.2+ | 
| tuple | CassTuple | 2.1+ | 
| user defined type | CassUserType | 2.1+ | 
| tinyint | cass_int8_t | 2.2+ | 
| smallint | cass_int16_t | 2.2+ | 
| date | cass_uint32_t | 2.2+ | 
| time | cass_int64_t | 2.2+ |