当前位置: > Linux集群 > Hadoop >

Hbase/Hadoop Java API编程常用语句

时间:2016-07-24 19:25来源:linux.it.net.cn 作者:IT
从scanner获取rowkey:

for(Result rr : scanner)
{
   String key =Bytes.toString(rr.getRow())
}
HBase API - Result object

getRow() Method for retrieving the row key that corresponds to the row from which this Result was created. (责任编辑:IT)
------分隔线----------------------------