1、列出所有namespace
list_namespace
2、建立namespace
create_namespace 'ns_name'
3、修改namespace屬性
alter_namespace 'nsname', {METHOD => 'set', 'PROPERTY_NAME' => 'PROPERTY_VALUE'}
4、刪除namespace屬性
alter_namespace 'nsname',{METHOD => 'unset', NAME => 'PROPERTY_NAME'}
5、刪表姿勢:先disable,再drop
disable 'nsname:tbname'
drop 'nsname:tbname'
6、查詢表中所有記錄
scan 'nsname:tbname'
7、插入記錄
put 'nsname:tbname','key','cf:colname','value'
8、修改值
put 'nsname:tbname','key','cf:colname','newvalue'
9、清空表(truncate)
truncate 'nsname:tbname'
10、刪除記錄
delete 'nsname:tbname','key','cf:colname'
11、獲取總記錄數
count 'nsname:tbname'
12、刪除全部記錄
deleteall 'nsname:tbname','key'
— 要養成終生學習的習慣 —