Regex are more expensive that "basic" filters for sure. But it's a simple
solution. You can implement a ColumnSuffixFilter. If you keys are always
the same length, you can look at this:
https://hbase.apache.org/0.94/apidocs/org/apache/hadoop/hbase/filter/FuzzyRowFilter.html

JM

2015-02-11 0:44 GMT-05:00 hongbin ma <[email protected]>:

> Will there be any performance issues ? i'm curious if there's an efficient
> way of implement such kind of filer.
>
> On Wed, Feb 11, 2015 at 1:39 PM, Alok Singh <[email protected]> wrote:
>
> > You could use a QualifierFilter with a RegexStringComparator to do the
> > same.
> >
> > Alok
> >
> > On Tue, Feb 10, 2015 at 7:23 PM, anil gupta <[email protected]>
> wrote:
> > > Hi,
> > >
> > > I want to get all the columns of a row that ends with "xyz". I know
> there
> > > is ColumnPrefixFilter. Is there any other column filter in HBase that
> can
> > > help me simulate feature of suffix matching?
> > >
> > > In my opinion, ColumnSuffixFilter would be a good addition to Filters
> of
> > > HBase.
> > >
> > > --
> > > Thanks & Regards,
> > > Anil Gupta
> >
>

Reply via email to