You will need to use a RowFilter with a Comparator that only looks at the last 4 bytes, http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/filter/RowFilter.html
FYI unless you are restricting your scans on a few rows, doing this on a whole table won't scale as it will do a full table scan. J-D On Wed, Jul 27, 2011 at 7:34 AM, Shuja Rehman <[email protected]> wrote: > Hi, > > I have the key consist of two integers (4+4=8 Bytes). and i want to filter > the rows on the basis of second integer which means need to compare last 4 > bytes of key. If last 4 bytes matched with input integer then row should > include in the return results. Can you ppl let me know how to do this with > java API. > > Thanks > > -- > Regards > Shuja-ur-Rehman Baig > <http://pk.linkedin.com/in/shujamughal> >
