2013-04-11 91 views
0
[[email protected]] get fv['user:/file.txt']; 
=> (super_column=1365647977415, 
    (column=6363, value=0000000000000001, timestamp=1368238637628082) 
    (column=6c6d64, value=0000013f79344eb2, timestamp=1368238637628081) 
    (column=7362, value=000000000000003a, timestamp=1368238637628083)) 
=> (super_column=1365653962252, 
    (column=6363, value=0000000000000001, timestamp=1368238637727277) 
    (column=6c6d64, value=0000013f798fbee6, timestamp=1368238637727276) 
    (column=7362, value=0000000000000045, timestamp=1368238637727278)) 

del fv['user:/file.txt'][1365647977415]; 
column removed. 

get fv['user:/file.txt']; 
=> (super_column=1365647977415, 
    (column=6363, value=0000000000000001, timestamp=1368238637628082) 
    (column=6c6d64, value=0000013f79344eb2, timestamp=1368238637628081) 
    (column=7362, value=000000000000003a, timestamp=1368238637628083)) 
=> (super_column=1365653962252, 
    (column=6363, value=0000000000000001, timestamp=1368238637727277) 
    (column=6c6d64, value=0000013f798fbee6, timestamp=1368238637727276) 
    (column=7362, value=0000000000000045, timestamp=1368238637727278)) 

這怎麼可能?比較器是ByteType,我用無法用cassandra-cli刪除超級列表

assume fv comparator as LongType; 

回答

1

問題出在列時間戳比現在更新。小心點,夥計們。

=> (super_column=1365647977415, 
    (column=6363, value=0000000000000001, timestamp=1368238637628082) 

1368238637628082 ==星期六,2013 5月11日2點17分17秒GMT

現在是星期四,2013年4月11日7時10分36秒GMT