Re: [ANNOUNCE] Apache Phoenix 5.0.0-alpha released
Congratulations -- Sent from: http://apache-hbase.679495.n3.nabble.com/HBase-User-f4020416.html
How to get string from hbase composite key?
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.nabble.com/HBase-User-f4020416.html
Re: How to get string from hbase composite key?
So, it would be like manually getting 4 byte. Actually they are long. -- Sent from: http://apache-hbase.679495.n3.nabble.com/HBase-User-f4020416.html
Query data like opentsdb
I have key design like:byte[] rowKey = =Bytes.add(Bytes.toBytes("3"),Bytes.toBytes(customer_id),Bytes.toBytes(timestamp)); customer_id and timestamp are long type. As opentsdb uses:[…]I would like to filter my key by customer_id and timestamp. How do I do that?I have tried using prefixfilter. e.g.byte[] prefix = Bytes.add(Bytes.toBytes("3"), Bytes.toBytes(customer_id),Bytes.toBytes(cal.getTime().getTime())); PrefixFilter prefixFilter = new PrefixFilter(prefix); Scan scan = new Scan( prefix); -- Sent from: http://apache-hbase.679495.n3.nabble.com/HBase-User-f4020416.html