hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From takeshi <takeshi.m...@gmail.com>
Subject Re: Row Filters using BitComparator
Date Wed, 02 Oct 2013 03:33:01 GMT
Hi,

Here is the RowFilter sample
https://github.com/larsgeorge/hbase-book/blob/master/ch04/src/main/java/filters/RowFilterExample.java
provided by Lars George's book; I think you can combine the
TesdtBitComparator.java and this link to figure out what you need.

Best regards

takeshi


2013/10/1 abhinavpundir <abhinavmasters@gmail.com>

> Thanks Amit but that link doesnt really help.
> I havent got a single link which showsbitcomparators  together with row
> filters .
>
> On Monday, September 23, 2013, anil gupta [via Apache HBase] wrote:
>
> > Inline
> >
> >
> > On Sun, Sep 22, 2013 at 1:05 PM, abhinavpundir <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=4051068&i=0>>wrote:
> >
> >
> > > Thnx a lot anil
> > >
> > > By any chance do you know how to use bitcomparators in hbase ?
> > >
> > I havent used it till now. Have a look at this JUnit of BitComparator for
> > learning how to use it:
> >
> >
> http://svn.apache.org/viewvc/hbase/tags/0.94.9/src/test/java/org/apache/hadoop/hbase/filter/TestBitComparator.java?revision=1500225&view=markup
> >
> > >
> > > On Monday, September 16, 2013, anil gupta [via Apache HBase] wrote:
> > >
> > > > Inline.
> > > >
> > > > On Sun, Sep 15, 2013 at 12:04 AM, abhinavpundir <[hidden email]<
> > > http://user/SendEmail.jtp?type=node&node=4050761&i=0>>wrote:
> > > >
> > > >
> > > > > I have rows in my Hbase whose keys are made up of 5 components. I
> > would
> > > > > like
> > > > > to search my hbase using rowFilters by using only some(May be only
> > the
> > > > > first
> > > > > 2 components ) of the components. I don't want to use
> > > > > RegexStringComparator.
> > > > >
> > > > > If you are using the first two components(i.e. prefix of the
> rowkey)
> > > > then
> > > > you can use PrefixFilter(
> > > >
> > > >
> > >
> >
> http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/filter/PrefixFilter.html
> > > ).
> > > >
> > > > Also, dont forget to set startRow and StopRow.
> > > >
> > > > > I would like to use BitComparator because it is fast.
> > > > >
> > > > > how would I do that?
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > View this message in context:
> > > > >
> > > >
> > >
> >
> http://apache-hbase.679495.n3.nabble.com/Row-Filters-using-BitComparator-tp4050739.html
> > > > > Sent from the HBase User mailing list archive at Nabble.com.
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Thanks & Regards,
> > > > Anil Gupta
> > > >
> > > >
> > > > ------------------------------
> > > >  If you reply to this email, your message will be added to the
> > discussion
> > > > below:
> > > >
> > > >
> > >
> >
> http://apache-hbase.679495.n3.nabble.com/Row-Filters-using-BitComparator-tp4050739p4050761.html
> > > >  To unsubscribe from Row Filters using BitComparator, click here<
> > > >
> > > > .
> > > > NAML<
> > >
> >
> http://apache-hbase.679495.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> > > >
> > > >
> > >
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://apache-hbase.679495.n3.nabble.com/Row-Filters-using-BitComparator-tp4050739p4051065.html
> > > Sent from the HBase User mailing list archive at Nabble.com.
> > >
> >
> >
> >
> > --
> > Thanks & Regards,
> > Anil Gupta
> >
> >
> > ------------------------------
> >  If you reply to this email, your message will be added to the discussion
> > below:
> >
> >
> http://apache-hbase.679495.n3.nabble.com/Row-Filters-using-BitComparator-tp4050739p4051068.html
> >  To unsubscribe from Row Filters using BitComparator, click here<
> http://apache-hbase.679495.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4050739&code=YWJoaW5hdm1hc3RlcnNAZ21haWwuY29tfDQwNTA3Mzl8LTM4Mzk3NTc0OQ==
> >
> > .
> > NAML<
> http://apache-hbase.679495.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> >
>
>
>
>
> --
> View this message in context:
> http://apache-hbase.679495.n3.nabble.com/Row-Filters-using-BitComparator-tp4050739p4051372.html
> Sent from the HBase User mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message