incubator-accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bil...@apache.org
Subject svn commit: r1212525 - /incubator/accumulo/branches/1.4/src/core/src/main/java/org/apache/accumulo/core/iterators/user/RegExFilter.java
Date Fri, 09 Dec 2011 17:14:10 GMT
Author: billie
Date: Fri Dec  9 17:14:10 2011
New Revision: 1212525

URL: http://svn.apache.org/viewvc?rev=1212525&view=rev
Log:
ACCUMULO-209 applied keith's change

Modified:
    incubator/accumulo/branches/1.4/src/core/src/main/java/org/apache/accumulo/core/iterators/user/RegExFilter.java

Modified: incubator/accumulo/branches/1.4/src/core/src/main/java/org/apache/accumulo/core/iterators/user/RegExFilter.java
URL: http://svn.apache.org/viewvc/incubator/accumulo/branches/1.4/src/core/src/main/java/org/apache/accumulo/core/iterators/user/RegExFilter.java?rev=1212525&r1=1212524&r2=1212525&view=diff
==============================================================================
--- incubator/accumulo/branches/1.4/src/core/src/main/java/org/apache/accumulo/core/iterators/user/RegExFilter.java
(original)
+++ incubator/accumulo/branches/1.4/src/core/src/main/java/org/apache/accumulo/core/iterators/user/RegExFilter.java
Fri Dec  9 17:14:10 2011
@@ -74,7 +74,7 @@ public class RegExFilter extends Filter 
   private boolean matches(Matcher matcher, ByteSequence bs) {
     if (matcher != null) {
       try {
-        matcher.reset(new String(bs.getBackingArray(), encoding));
+        matcher.reset(new String(bs.getBackingArray(), bs.offset(), bs.length(), encoding));
         return matcher.matches();
       } catch (UnsupportedEncodingException e) {
         e.printStackTrace();



Mime
View raw message