hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1451287 - /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/filter/FilterBase.java
Date Thu, 28 Feb 2013 18:48:12 GMT
Author: tedyu
Date: Thu Feb 28 18:48:11 2013
New Revision: 1451287

URL: http://svn.apache.org/r1451287
Log:
HBASE-7920 Addendum fixes checking for FilterList


Modified:
    hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/filter/FilterBase.java

Modified: hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/filter/FilterBase.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/filter/FilterBase.java?rev=1451287&r1=1451286&r2=1451287&view=diff
==============================================================================
--- hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/filter/FilterBase.java (original)
+++ hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/filter/FilterBase.java Thu Feb
28 18:48:11 2013
@@ -152,7 +152,8 @@ public abstract class FilterBase impleme
    * @return whether column family is essential
    */
   public static boolean isFamilyEssential(Filter filter, byte[] name) {
-    return !(filter instanceof FilterBase) || ((FilterBase) filter).isFamilyEssential(name);
+    return (!(filter instanceof FilterBase) || ((FilterBase) filter).isFamilyEssential(name))
&&
+           (!(filter instanceof FilterList) || ((FilterList) filter).isFamilyEssential(name));
   }
 
   /**



Mime
View raw message