You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by Developer Brasil <al...@terra.com.br> on 2017/05/07 17:56:58 UTC
Query Hbase
How do I query multiple columns with filters in hbase?
In sql it would look like this
Select field1, field2 from table
Where field1 = record AND field2 = record2
--
View this message in context: http://apache-hbase.679495.n3.nabble.com/Query-Hbase-tp4087859.html
Sent from the HBase Developer mailing list archive at Nabble.com.
Re: Query Hbase
Posted by Ted Yu <yu...@gmail.com>.
Under hbase-server/src/test , you can find many tests involving both
FilterList and SingleColumnValueFilter
e.g.
hbase-server/src/test//java/org/apache/hadoop/hbase/regionserver/TestHRegion.java
On Sun, May 7, 2017 at 2:22 PM, Developer Brasil <
alfredo.tavares@terra.com.br> wrote:
> Thank You
>
> Could send an example is which of the options and more performative ??
>
>
> > Em 7 de mai de 2017, às 18:16, Ted Yu-3 [via Apache HBase] <
> ml+s679495n4087860h3@n3.nabble.com> escreveu:
> >
> > SingleColumnValueFilter can be used on one column.
> > You can use FilterList to chain multiple SingleColumnValueFilter
> together.
> >
> > Cheers
> >
> > On Sun, May 7, 2017 at 10:56 AM, Developer Brasil <
> > [hidden email]> wrote:
> >
> > > How do I query multiple columns with filters in hbase?
> > > In sql it would look like this
> > > Select field1, field2 from table
> > > Where field1 = record AND field2 = record2
> > >
> > >
> > >
> > > --
> > > View this message in context: http://apache-hbase.679495.n3.
> > > nabble.com/Query-Hbase-tp4087859.html
> > > Sent from the HBase Developer mailing list archive at Nabble.com.
> > >
> >
> >
> > If you reply to this email, your message will be added to the discussion
> below:
> > http://apache-hbase.679495.n3.nabble.com/Query-Hbase-
> tp4087859p4087860.html
> > To unsubscribe from Query Hbase, click here.
> > NAML
>
>
>
>
> --
> View this message in context: http://apache-hbase.679495.n3.
> nabble.com/Query-Hbase-tp4087859p4087861.html
> Sent from the HBase Developer mailing list archive at Nabble.com.
>
Re: Query Hbase
Posted by Developer Brasil <al...@terra.com.br>.
Thank You
Could send an example is which of the options and more performative ??
> Em 7 de mai de 2017, às 18:16, Ted Yu-3 [via Apache HBase] <ml...@n3.nabble.com> escreveu:
>
> SingleColumnValueFilter can be used on one column.
> You can use FilterList to chain multiple SingleColumnValueFilter together.
>
> Cheers
>
> On Sun, May 7, 2017 at 10:56 AM, Developer Brasil <
> [hidden email]> wrote:
>
> > How do I query multiple columns with filters in hbase?
> > In sql it would look like this
> > Select field1, field2 from table
> > Where field1 = record AND field2 = record2
> >
> >
> >
> > --
> > View this message in context: http://apache-hbase.679495.n3.
> > nabble.com/Query-Hbase-tp4087859.html
> > Sent from the HBase Developer mailing list archive at Nabble.com.
> >
>
>
> If you reply to this email, your message will be added to the discussion below:
> http://apache-hbase.679495.n3.nabble.com/Query-Hbase-tp4087859p4087860.html
> To unsubscribe from Query Hbase, click here.
> NAML
--
View this message in context: http://apache-hbase.679495.n3.nabble.com/Query-Hbase-tp4087859p4087861.html
Sent from the HBase Developer mailing list archive at Nabble.com.
Re: Query Hbase
Posted by Ted Yu <yu...@gmail.com>.
SingleColumnValueFilter can be used on one column.
You can use FilterList to chain multiple SingleColumnValueFilter together.
Cheers
On Sun, May 7, 2017 at 10:56 AM, Developer Brasil <
alfredo.tavares@terra.com.br> wrote:
> How do I query multiple columns with filters in hbase?
> In sql it would look like this
> Select field1, field2 from table
> Where field1 = record AND field2 = record2
>
>
>
> --
> View this message in context: http://apache-hbase.679495.n3.
> nabble.com/Query-Hbase-tp4087859.html
> Sent from the HBase Developer mailing list archive at Nabble.com.
>