org.apache.accumulo.core.util.shell.commands
public class GrepCommand extends ScanCommand
Shell.Command.CompletionSet
timestampOpt
Constructor and Description |
---|
GrepCommand() |
Modifier and Type | Method and Description |
---|---|
String |
description() |
int |
execute(String fullCommand,
org.apache.commons.cli.CommandLine cl,
Shell shellState) |
org.apache.commons.cli.Options |
getOptions() |
int |
numArgs()
If the number of arguments is not always zero (not including those arguments handled through Options), make sure to override the
Shell.Command.usage() method. |
protected void |
setUpIterator(int prio,
String name,
String term,
BatchScanner scanner,
org.apache.commons.cli.CommandLine cl) |
String |
usage() |
addScanIterators, fetchColumns, getAuths, getFormatter, getInterpreter, getOutputFile, getRange, getTimeout, printBinaryRecords, printBinaryRecords, printRecords, printRecords
getName, getOptionsWithHelp, printHelp, printHelp, registerCompletion, registerCompletionForCommands, registerCompletionForNamespaces, registerCompletionForTables, registerCompletionForUsers, registerCompletionGeneral
public int execute(String fullCommand, org.apache.commons.cli.CommandLine cl, Shell shellState) throws Exception
execute
in class ScanCommand
Exception
protected void setUpIterator(int prio, String name, String term, BatchScanner scanner, org.apache.commons.cli.CommandLine cl) throws IOException
IOException
public String description()
description
in class ScanCommand
public org.apache.commons.cli.Options getOptions()
getOptions
in class ScanCommand
public String usage()
usage
in class Shell.Command
public int numArgs()
Shell.Command
Shell.Command.usage()
method.
Otherwise, Shell.Command.usage()
does need to be overridden.numArgs
in class ScanCommand
Copyright © 2011–2016 The Apache Software Foundation. All rights reserved.