Take a look at CellUtil#getCellKey() as well. Cheers
On Mon, Oct 13, 2014 at 3:46 AM, Vikram Singh Chandel < [email protected]> wrote: > 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 <[email protected] > > > wrote: > > > 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 > > > > > > -- > *Regards* > > *VIKRAM SINGH CHANDEL* > > Please do not print this email unless it is absolutely necessary,Reduce. > Reuse. Recycle. Save our planet. >
