accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bil...@apache.org
Subject svn commit: r1332707 - /accumulo/branches/1.4/src/core/src/main/java/org/apache/accumulo/core/util/shell/commands/GrepCommand.java
Date Tue, 01 May 2012 15:48:00 GMT
Author: billie
Date: Tue May  1 15:48:00 2012
New Revision: 1332707

URL: http://svn.apache.org/viewvc?rev=1332707&view=rev
Log:
ACCUMULO-562 changed priority of GrepIterators when grepping for multiple terms

Modified:
    accumulo/branches/1.4/src/core/src/main/java/org/apache/accumulo/core/util/shell/commands/GrepCommand.java

Modified: accumulo/branches/1.4/src/core/src/main/java/org/apache/accumulo/core/util/shell/commands/GrepCommand.java
URL: http://svn.apache.org/viewvc/accumulo/branches/1.4/src/core/src/main/java/org/apache/accumulo/core/util/shell/commands/GrepCommand.java?rev=1332707&r1=1332706&r2=1332707&view=diff
==============================================================================
--- accumulo/branches/1.4/src/core/src/main/java/org/apache/accumulo/core/util/shell/commands/GrepCommand.java
(original)
+++ accumulo/branches/1.4/src/core/src/main/java/org/apache/accumulo/core/util/shell/commands/GrepCommand.java
Tue May  1 15:48:00 2012
@@ -66,7 +66,7 @@ public class GrepCommand extends ScanCom
     scanner.setRanges(Collections.singletonList(getRange(cl)));
     
     for (int i = 0; i < cl.getArgs().length; i++)
-      setUpIterator(Integer.MAX_VALUE, "grep" + i, cl.getArgs()[i], scanner);
+      setUpIterator(Integer.MAX_VALUE - cl.getArgs().length + i, "grep" + i, cl.getArgs()[i],
scanner);
     
     try {
       // handle columns
@@ -117,4 +117,4 @@ public class GrepCommand extends ScanCom
   public int numArgs() {
     return Shell.NO_FIXED_ARG_LENGTH_CHECK;
   }
-}
\ No newline at end of file
+}



Mime
View raw message