@Test public void testBeginRowHelp() { assertTrue("-b should say it is exclusive", new FlushCommand().getOptions().getOption("b").getDescription().contains("(exclusive)")); }
@Override public Options getOptions() { final Options opts = super.getOptions(); waitOpt = new Option("w", "wait", false, "wait for flush to finish"); opts.addOption(waitOpt); opts.addOption(OptUtil.startRowOpt()); opts.addOption(OptUtil.endRowOpt()); return opts; }
FlushCommand extends TableOperation { @Override public Options getOptions() { final Options opts = super.getOptions(); waitOpt = new Option("w", "wait", false, "wait for flush to finish"); opts.addOption(waitOpt); opts.addOption(OptUtil.startRowOpt()); opts.addOption(OptUtil.endRowOpt()); return opts; } }
FlushCommand extends TableOperation { @Override public Options getOptions() { final Options opts = super.getOptions(); waitOpt = new Option("w", "wait", false, "wait for flush to finish"); opts.addOption(waitOpt); opts.addOption(OptUtil.startRowOpt()); opts.addOption(OptUtil.endRowOpt()); return opts; }  }
FlushCommand extends TableOperation { @Override public Options getOptions() { final Options opts = super.getOptions(); waitOpt = new Option("w", "wait", false, "wait for flush to finish"); opts.addOption(waitOpt); opts.addOption(OptUtil.startRowOpt()); opts.addOption(OptUtil.endRowOpt()); return opts; }  @Override String description(); @Override int execute(final String fullCommand, final CommandLine cl, final Shell shellState); @Override Options getOptions(); }
FlushCommand extends TableOperation { @Override public Options getOptions() { final Options opts = super.getOptions(); waitOpt = new Option("w", "wait", false, "wait for flush to finish"); opts.addOption(waitOpt); opts.addOption(OptUtil.startRowOpt()); opts.addOption(OptUtil.endRowOpt()); return opts; }  @Override String description(); @Override int execute(final String fullCommand, final CommandLine cl, final Shell shellState); @Override Options getOptions();  }