I'm designing an Hbase schema where the row key should be an integer. I intend to use scan API from java with startrow and endrow with integer values.
I guess I can transform my integers in a String with
You can do this by using org.apache.hadoop.hbase.util.Bytes from the hbase-client library.
From byte-array to int:
From int to byte-array:
I have actually made an online tool to generate the hex values I need to query row-ids in hbase shell right here.