1
2
3
4
5
6
7
8
9
10
|
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://down.51cto.com/data/2365082
本文转自 wws5201985 51CTO博客,原文链接:http://blog.51cto.com/yjplxq/1576652,如需转载请自行联系原作者