天天看點

Cassandra Java資料類型對應

CQL類型 對應Java類型 描述
ascii String ascii字元串
bigint long 64位整數
blob ByteBuffer/byte[] 二進制數組
boolean boolean 布爾
counter long 計數器,支援原子性的增減,不支援直接指派
decimal BigDecimal 高精度小數
double double 64位浮點數
float float 32位浮點數
inet InetAddress ​​ipv4​​
或​​ipv6​​
協定的ip位址
int int 32位整數
list List 有序的清單
map Map 鍵值對
set Set 集合
text String ​​utf-8​​
編碼的字元串
timestamp Date 日期
uuid UUID ​​UUID​​
類型
timeuuid UUID 時間相關的UUID
varchar string text的别名
varint BigInteger