Thanks everyone, I ended up creating multiple FilterList objects and merging them into one to simulate compound filter.
-----Original Message----- From: Vladimir Rodionov [mailto:[email protected]] Sent: Monday, August 17, 2015 17:11 To: [email protected] Subject: Re: Hbase compound filter support FilterList supports both operators: AND and OR. -Vlad On Mon, Aug 17, 2015 at 1:26 PM, Shahab Yunus <[email protected]> wrote: > As far as I know, yes. I think this is more flexible and gives you > arbitrarily more combinations. > > Regards, > Shahab > > On Mon, Aug 17, 2015 at 4:24 PM, <[email protected]> wrote: > > > Thanks for the response. > > > > So, there's no out-of-box support for compound filter correct? The > > recommendation is to build something on top of FilterList? > > > > -----Original Message----- > > From: Shahab Yunus [mailto:[email protected]] > > Sent: Monday, August 17, 2015 16:17 > > To: [email protected] > > Subject: Re: Hbase compound filter support > > > > You can built nest Filter conditions using FilterLists of FilterList. > > FilterList implements the Filter interface so 'add' method will work. > > > > Have you checked that approach? > > > > Regards, > > Shahab > > > > On Mon, Aug 17, 2015 at 4:07 PM, <[email protected]> wrote: > > > > > Hello, > > > > > > Is there a Java API support for compound filter (a hierarchy of > filters)? > > > What I mean by compound filter is: > > > > > > (Filter1 AND filter2) OR (Filter2 OR filter4) > > > > > > I believe (not sure though) there's something similar available on > > > Hbase shell. > > > > > > I understand there's already > > > org.apache.hadoop.hbase.filter.FilterList.FilterList which is a > > > single hierarchy model (Filter1 AND filter2). > > > > > > Thanks for your help in advance. > > > > > > Regards > > > Kannan. > > > > > > _______________________________________________ > > > > > > This message is for information purposes only, it is not a > > > recommendation, advice, offer or solicitation to buy or sell a > > > product or service nor an official confirmation of any > > > transaction. It is directed at persons who are professionals and > > > is not intended for retail customer use. Intended for recipient > > > only. This message is > > subject to the terms at: > > > www.barclays.com/emaildisclaimer. > > > > > > For important disclosures, please see: > > > www.barclays.com/salesandtradingdisclaimer regarding market > > > commentary from Barclays Sales and/or Trading, who are active > > > market participants; and in respect of Barclays Research, > > > including disclosures relating to specific issuers, please see > > http://publicresearch.barclays.com. > > > > > > _______________________________________________ > > > > > > > _______________________________________________ > > > > This message is for information purposes only, it is not a > recommendation, > > advice, offer or solicitation to buy or sell a product or service > > nor an official confirmation of any transaction. It is directed at > > persons who > are > > professionals and is not intended for retail customer use. Intended > > for recipient only. This message is subject to the terms at: > > www.barclays.com/emaildisclaimer. > > > > For important disclosures, please see: > > www.barclays.com/salesandtradingdisclaimer regarding market > > commentary from Barclays Sales and/or Trading, who are active market > > participants; > and > > in respect of Barclays Research, including disclosures relating to > specific > > issuers, please see http://publicresearch.barclays.com. > > > > _______________________________________________ > > > _______________________________________________ This message is for information purposes only, it is not a recommendation, advice, offer or solicitation to buy or sell a product or service nor an official confirmation of any transaction. It is directed at persons who are professionals and is not intended for retail customer use. Intended for recipient only. This message is subject to the terms at: www.barclays.com/emaildisclaimer. For important disclosures, please see: www.barclays.com/salesandtradingdisclaimer regarding market commentary from Barclays Sales and/or Trading, who are active market participants; and in respect of Barclays Research, including disclosures relating to specific issuers, please see http://publicresearch.barclays.com. _______________________________________________
