hbase的一些简单操作
初始化
查询一条数据
更新数据public void filter(String tablename, String key,int count) throws IOException {HTable table = new HTable(cfg, tablename);Scan s = new Scan();List<Filter> list = new ArrayList<Filter>();list.add(new PrefixFilter(key.getBytes()));list.add(new PageFilter(count));FilterList filter = new FilterList(list);s.setFilter(filter);ResultScanner rs = table.getScanner(s); }