accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject [1/2] git commit: ACCUMULO-1711 update the documentation for the start-row option
Date Wed, 11 Sep 2013 21:00:36 GMT
Updated Branches:
  refs/heads/1.5.1-SNAPSHOT 789c92040 -> f9efaf19f


ACCUMULO-1711 update the documentation for the start-row option


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/4b98faca
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/4b98faca
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/4b98faca

Branch: refs/heads/1.5.1-SNAPSHOT
Commit: 4b98faca590bf63cbfdcc5456c98df5b1fa9505e
Parents: 0895046
Author: Eric Newton <eric.newton@gmail.com>
Authored: Wed Sep 11 16:59:07 2013 -0400
Committer: Eric Newton <eric.newton@gmail.com>
Committed: Wed Sep 11 16:59:07 2013 -0400

----------------------------------------------------------------------
 .../accumulo/core/util/shell/commands/DeleteRowsCommand.java  | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/4b98faca/core/src/main/java/org/apache/accumulo/core/util/shell/commands/DeleteRowsCommand.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/accumulo/core/util/shell/commands/DeleteRowsCommand.java
b/core/src/main/java/org/apache/accumulo/core/util/shell/commands/DeleteRowsCommand.java
index 1ece488..ec55c19 100644
--- a/core/src/main/java/org/apache/accumulo/core/util/shell/commands/DeleteRowsCommand.java
+++ b/core/src/main/java/org/apache/accumulo/core/util/shell/commands/DeleteRowsCommand.java
@@ -25,7 +25,8 @@ import org.apache.hadoop.io.Text;
 
 public class DeleteRowsCommand extends Command {
   private Option forceOpt;
-  
+  private Option startRowOptExclusive;
+ 
   @Override
   public int execute(final String fullCommand, final CommandLine cl, final Shell shellState)
throws Exception {
     final String tableName = OptUtil.getTableOpt(cl, shellState);
@@ -53,7 +54,9 @@ public class DeleteRowsCommand extends Command {
   public Options getOptions() {
     final Options o = new Options();
     forceOpt = new Option("f", "force", false, "delete data even if start or end are not
specified");
-    o.addOption(OptUtil.startRowOpt());
+    startRowOptExclusive = new Option(OptUtil.START_ROW_OPT, "begin-row", true, "begin row
(exclusive)");
+    startRowOptExclusive.setArgName("begin-row");
+    o.addOption(startRowOptExclusive);
     o.addOption(OptUtil.endRowOpt());
     o.addOption(OptUtil.tableOpt("table to delete a row range from"));
     o.addOption(forceOpt);


Mime
View raw message