It seems there are 3 components in the row key.
Assuming the 2nd and 3rd are integers, you can take a look at the following
method of Bytes:

  public static byte[] toBytes(int val) {

which returns 4 byte long byte array.
You can use this knowledge to decode each component of the row key.

FYI

On Sat, Feb 17, 2018 at 8:44 PM, kitex101 <[email protected]> wrote:

> I have key in following format:
>
> byte[] rowKey =
> =Bytes.add(Bytes.toBytes("3"),Bytes.toBytes(982222),Bytes.toBytes(1211));
>
> It is stored as byte array.
>
> How to decode it when using java?
>
> Bytes.toString(CellUtil.cloneRow(cell))
>
> results in a�~��
>
>
>
>
> --
> Sent from: http://apache-hbase.679495.n3.nabble.com/HBase-User-
> f4020416.html
>

Reply via email to