hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: Querying with multiple filters
Date Wed, 10 Jul 2013 20:23:50 GMT
You would see this in the help for 'scan' command:

  hbase> scan 't1', {FILTER => "(PrefixFilter ('row2') AND (QualifierFilter
(>=, 'binary:xyz'))) AND (TimestampsFilter ( 123, 456))"}

Cheers

On Wed, Jul 10, 2013 at 1:10 PM, Mariam Salloum <mariam.salloum@gmail.com>wrote:

> HI All,
>
> I'm new to HBase. I was trying to write a query with multiple filters. I
> am able to write the query with a single column filter. As follows:
>
> scan 'webpage', {COLUMNS => 'f:bid', FILTER=>
> SingleColumnValueFilter.new(Bytes.toBytes('f'),Bytes.toBytes('bid'),CompareFilter::CompareOp.valueOf('EQUAL'),SubstringComparator.new('houston_tx'))}
>
> How am I able to specify multiple filters? I'm using the Hbase Shell
>
> Thank you for your help
>
> Mariam

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