hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stack <st...@duboce.net>
Subject Re: filtering on a prefix of the row key
Date Thu, 11 Feb 2010 18:41:40 GMT
On Wed, Feb 10, 2010 at 7:16 AM, Bruno Dumon <bruno@outerthought.org> wrote:
> Hi,
> I would like a filter that accepts rows as long as the first X bytes
> of the row key are less than or equal to a certain byte array.

Would an inclusivestoprow filter work for you where the stoprow is the
'certain byte array'?

> I have created a BinaryPrefixComparator. It is similar to the
> BinaryComparator, but it only compares the part of the row key up to
> the same length as the supplied byte array. It fits my needs exactly.
> Can I submit a patch with this comparator, or is there another way to
> obtain the same behavior?

Patch welcome.  Please file a JIRA.  You had to add your filter to


View raw message