Hbase基本操作
查询整个列蔟:scan 'testTable',{COLUMN=>'cf'}
查询列蔟中的一列:scan 'testTable',{COLUMN=>'cf:a'}
查询某个rowid的值:get 'testTable','rowid1'
查询某个rowid中的某个列蔟的值:get 'testTable','rowid1','cf'
查询某个rowid中的某个列蔟中的一列的值:get 'testTable','rowid1','cf:a'
查询表数据,限制返回行数:scan 'testTable',{LIMIT=>1}
查询值为aaa的数据:scan 'testTable', FILTER=>"ValueFilter(=, 'binary:aaa')"
注:FILTER条件过滤器
查询值中包含bbb的数据:scan 'testTable', FILTER=>"ValueFilter(=, 'substring:bbb')"
查询任意列蔟中的列开头匹配:scan 'testTable', FILTER=>"ColumnPrefixFilter('a')"
注:ColumnPrefixFilter 列名前缀过滤器