I am trying to create a hbase table with following structure.
**rowkey** |**CF1**
(customerid,txtimestamp)|customerid,amount
- I want to query records using customerid for certain period range.
- My rowkey uses customer id in reverse order and transaction timestamp.
Long customerid=Long.valueOf(new StringBuilder(customerid).reverse().toString());
byte[] rowKey = Bytes.add(Bytes.toBytes(customerid),Bytes.toBytes(txtimestamp.getTime()));
- How do I desige row key so that it gets split into 4 region server?
- Is there any efficient row key design method?