1.要保证hbase表本身有多个version
2.get的时候,要保证读取的可以读到多个或者所有的version
3.正常读取各个版本的数据Cell
user_tag某些行的某些列有多个版本,可以获取全部版本。建表时user_tag表是有10个version的。
hbase的cell取法,第二种更好。
不用listCells,用rawCells:
1.hbase的cell取法第一种,result.listCells——Bytes.toString(c.getValueArray(), c.getValueOffset(), c.getValueLength())或Bytes.toFloat(c.getValueArray(), c.getValueOffset())
这里要注意value的数据类型
Bytes源码方法:
2.hbase取法第二种,result.rawCells——CellUtil.clone**