Updated Branches: refs/heads/master 742b1625f -> 120ee2cee
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/master Commit: 4b98faca590bf63cbfdcc5456c98df5b1fa9505e Parents: 0895046 Author: Eric Newton <[email protected]> Authored: Wed Sep 11 16:59:07 2013 -0400 Committer: Eric Newton <[email protected]> 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);
