hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Daniel Cryans <jdcry...@apache.org>
Subject Re: Filter Rows on last 4 bytes
Date Wed, 27 Jul 2011 18:45:44 GMT
You will need to use a RowFilter with a Comparator that only looks at
the last 4 bytes,

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.


On Wed, Jul 27, 2011 at 7:34 AM, Shuja Rehman <shujamughal@gmail.com> 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>

View raw message