hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: Usage of CellUtil.getRowByte
Date Mon, 13 Oct 2014 14:18:53 GMT
Take a look at CellUtil#getCellKey() as well.

Cheers

On Mon, Oct 13, 2014 at 3:46 AM, Vikram Singh Chandel <
vikramsinghchandel@gmail.com> 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 <julian.wissmann@sdace.de
> >
> 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.
>

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