You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Kevin <ke...@gmail.com> on 2013/01/30 05:48:11 UTC

FilterList filterKeyValue logic

Hello,

I am using CDH4.1.2 and experimenting with custom filters. Looking at
HBase's source code, I am confused as to why a FilterList with its operator
as MUST_PASS_ONE does not return ReturnCode.INCLUDE as soon as one of its
filters includes a KeyValue (
http://grepcode.com/file/repo1.maven.org/maven2/org.apache.hbase/hbase/0.92.1/org/apache/hadoop/hbase/filter/FilterList.java#FilterList.filterKeyValue%28org.apache.hadoop.hbase.KeyValue%29).
Shouldn't line 218 be "return ReturnCode.INCLUDE;"? Isn't that the meaning
of MUST_PASS_ONE: as soon as a value is allowed to pass one of the filters,
it is included in the overall result? Why does it continue to evaluate all
the filters?

Can anyone help clarify this?

Thank you,
Kevin