I'm new to HBase and I'm writing a Java program which gets some data from a HBase table. The rowkeys have format #### - ###
where # represents a number between 0-9
. I would like to retrieve only rows starting with a specified pattern, let's say 2345 -. I found some example to retrieve a range of rows (using Scan(byte[] startRow, byte[] stopRow)
but this is not useful in my scenario.
Could someone help me with that?