Re: How to get string from hbase composite key?

2018-02-17 Thread Ted Yu
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

How to get string from hbase composite key?

2018-02-17 Thread kitex101
I have key in following format: byte[] rowKey = =Bytes.add(Bytes.toBytes("3"),Bytes.toBytes(98),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.nab

Re: [ANNOUNCE] Apache Phoenix 5.0.0-alpha released

2018-02-17 Thread kitex101
Congratulations -- Sent from: http://apache-hbase.679495.n3.nabble.com/HBase-User-f4020416.html