2013-04-22 20 views
0
create column family testing 
    with key_validation_class = 'SomeType1' 
    and comparator = 'SomeType2' 
    and default_validation_class = 'SomeType3' 

在這一行中代表什麼?在Cassandra Column Family中定義數據類型

set testing[a][b] = c 

我的觀點正確嗎?

a is of type SomeType1 
SomeType2 is how columns are sorted/sliced. 
c is of type SomeType3 

我的目標是創建一個商店包含時間序列數據

testing[a][b] = c; 
a is of type 'String' or 'UTF8Type' 
b is 'LongType' 
c is 'FloatType' 

我應該能夠做到

set testing['stats.randomNumber'][123456789] = 0.56; 
set testing['stats.randomNumber'][123456790] = 90.33; 

回答

0

在您的卡珊德拉-CLI聲明set testing[a][b] = c

a代表您的rowkey

b代表你的列名

c代表你的列值

爲了進一步澄清有關卡桑德拉-CLI看到Cassandra Documentation