hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin <kevin.macksa...@gmail.com>
Subject FilterList filterKeyValue logic
Date Wed, 30 Jan 2013 04:48:11 GMT
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

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