删除数据
删除user表row key为rk0001,列标示符为info:name的数据delete 'people', 'rk0001', 'info:name'
删除user表row key为rk0001,列标示符为info:name,timestamp为1392383705316的数据delete 'user', 'rk0001', 'info:name', 1392383705316清空user表中的数据
truncate 'people'
修改表结构
首先停用user表(新版本不用)
disable 'user'
添加两个列族f1和f2
alter 'people', name => 'f1'
alter 'user', name => 'f2'
启用表
enable 'user'
###disable 'user'(新版本不用)
删除一个列族:
alter 'user', name => 'f1', method => 'delete' 或 alter 'user', 'delete' => 'f1'
添加列族f1同时删除列族f2
alter 'user', {name => 'f1'}, {name => 'f2', method => 'delete'}
将user表的f1列族版本号改为5
alter 'people', name => 'info', versions => 5启用表
enable 'user'
删除表
disable 'user'
drop 'user'
get 'person', 'rk0001', {filter => valuefilter(=, 'binary:中国')}
get 'person', 'rk0001', {filter => (qualifierfilter(=,'substring:a'))}
scan 'person', {columns => 'info:name'}
scan 'person', {columns => ['info', 'data'], filter => (qualifierfilter(=,'substring:a'))}
scan 'person', {columns => 'info', startrow => 'rk0001', endrow => 'rk0003'}
scan 'person', {columns => 'info', startrow => '20140201', endrow => '20140301'}
scan 'person', {columns => 'info:name', timerange => [1395978233636, 1395987769587]}
delete 'person', 'rk0001', 'info:name'
alter 'person', name => 'ffff'
alter 'person', name => 'info', versions => 10get 'user', 'rk0002', {column => ['info:name', 'data:pic']}