hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vikram Singh Chandel <vikramsinghchan...@gmail.com>
Subject Re: Usage of CellUtil.getRowByte
Date Mon, 13 Oct 2014 10:46:11 GMT
Hi Julian

To get the rowKey you can use CellUtil class

try String rowKey = Bytes.toString(CellUtil.cloneRow(kv));

On Mon, Oct 13, 2014 at 3:18 PM, Julian Wissmann <julian.wissmann@sdace.de>

> Hi,
> I'm in need of grabbing the row key from a coprocessor's scan. However I am
> wondering what the best way for doing this would be.
> I just came across the fact that Cell.getRow() has been deprecated and
> relaced with CellUtil.getRowByte(). However looking at the Code gives me
> the impression, that I won't be able to retreive the Key from getRowByte().
> There also is KeyValue.getKey(), however the Javadoc for that states, that
> it should generally not be used.
> So I'm wondering what the best way going forward would be.
> KeyValue.getKey() or something else, that I have not seen, so far.
> Thanks!
> Julian



Please do not print this email unless it is absolutely necessary,Reduce.
Reuse. Recycle. Save our planet.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message