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);