@Test public void testBeginRowHelp() { assertTrue("-b should say it is exclusive", new MergeCommand().getOptions().getOption("b").getDescription().contains("(exclusive)")); }
@Override public Options getOptions() { final Options o = new Options(); verboseOpt = new Option("v", "verbose", false, "verbose output during merge"); sizeOpt = new Option("s", "size", true, "merge tablets to the given size over the entire table"); forceOpt = new Option("f", "force", false, "merge small tablets to large tablets, even if it goes over the given size"); allOpt = new Option("", "all", false, "allow an entire table to be merged into one tablet without prompting" + " the user for confirmation"); o.addOption(OptUtil.startRowOpt()); o.addOption(OptUtil.endRowOpt()); o.addOption(OptUtil.tableOpt("table to be merged")); o.addOption(verboseOpt); o.addOption(sizeOpt); o.addOption(forceOpt); o.addOption(allOpt); return o; }
MergeCommand extends Command { @Override public Options getOptions() { final Options o = new Options(); verboseOpt = new Option("v", "verbose", false, "verbose output during merge"); sizeOpt = new Option("s", "size", true, "merge tablets to the given size over the entire table"); forceOpt = new Option("f", "force", false, "merge small tablets to large tablets, even if it goes over the given size"); allOpt = new Option("", "all", false, "allow an entire table to be merged into one tablet without prompting" + " the user for confirmation"); o.addOption(OptUtil.startRowOpt()); o.addOption(OptUtil.endRowOpt()); o.addOption(OptUtil.tableOpt("table to be merged")); o.addOption(verboseOpt); o.addOption(sizeOpt); o.addOption(forceOpt); o.addOption(allOpt); return o; } }
MergeCommand extends Command { @Override public Options getOptions() { final Options o = new Options(); verboseOpt = new Option("v", "verbose", false, "verbose output during merge"); sizeOpt = new Option("s", "size", true, "merge tablets to the given size over the entire table"); forceOpt = new Option("f", "force", false, "merge small tablets to large tablets, even if it goes over the given size"); allOpt = new Option("", "all", false, "allow an entire table to be merged into one tablet without prompting" + " the user for confirmation"); o.addOption(OptUtil.startRowOpt()); o.addOption(OptUtil.endRowOpt()); o.addOption(OptUtil.tableOpt("table to be merged")); o.addOption(verboseOpt); o.addOption(sizeOpt); o.addOption(forceOpt); o.addOption(allOpt); return o; }  }
MergeCommand extends Command { @Override public Options getOptions() { final Options o = new Options(); verboseOpt = new Option("v", "verbose", false, "verbose output during merge"); sizeOpt = new Option("s", "size", true, "merge tablets to the given size over the entire table"); forceOpt = new Option("f", "force", false, "merge small tablets to large tablets, even if it goes over the given size"); allOpt = new Option("", "all", false, "allow an entire table to be merged into one tablet without prompting" + " the user for confirmation"); o.addOption(OptUtil.startRowOpt()); o.addOption(OptUtil.endRowOpt()); o.addOption(OptUtil.tableOpt("table to be merged")); o.addOption(verboseOpt); o.addOption(sizeOpt); o.addOption(forceOpt); o.addOption(allOpt); return o; }  @Override int execute(final String fullCommand, final CommandLine cl, final Shell shellState); @Override String description(); @Override int numArgs(); @Override Options getOptions(); }
MergeCommand extends Command { @Override public Options getOptions() { final Options o = new Options(); verboseOpt = new Option("v", "verbose", false, "verbose output during merge"); sizeOpt = new Option("s", "size", true, "merge tablets to the given size over the entire table"); forceOpt = new Option("f", "force", false, "merge small tablets to large tablets, even if it goes over the given size"); allOpt = new Option("", "all", false, "allow an entire table to be merged into one tablet without prompting" + " the user for confirmation"); o.addOption(OptUtil.startRowOpt()); o.addOption(OptUtil.endRowOpt()); o.addOption(OptUtil.tableOpt("table to be merged")); o.addOption(verboseOpt); o.addOption(sizeOpt); o.addOption(forceOpt); o.addOption(allOpt); return o; }  @Override int execute(final String fullCommand, final CommandLine cl, final Shell shellState); @Override String description(); @Override int numArgs(); @Override Options getOptions();  }