标签:hbase json
import com.alibaba.fastjson.JSON
Configuration conf = HBaseConfiguration.create();
HTableInterface usersTable = new HTable(conf,table);
Get g = new Get(Bytes.toBytes("TheRealMT"));
Result r = usersTable.get(g);
Map<byte[], NavigableMap<byte[], NavigableMap<Long, byte[]>>> map = r.getMap();
String text = JSON.toJSONString(map);
System.out.println(text);本文出自 “书生” 博客,请务必保留此出处http://yjplxq.blog.51cto.com/4081353/1576652
标签:hbase json
原文地址:http://yjplxq.blog.51cto.com/4081353/1576652