Class GrepCommand
- java.lang.Object
-
- org.apache.accumulo.shell.Shell.Command
-
- org.apache.accumulo.shell.commands.ScanCommand
-
- org.apache.accumulo.shell.commands.GrepCommand
-
- Direct Known Subclasses:
EGrepCommand
public class GrepCommand extends ScanCommand
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.accumulo.shell.Shell.Command
Shell.Command.CompletionSet
-
-
Field Summary
-
Fields inherited from class org.apache.accumulo.shell.commands.ScanCommand
profileOpt, timestampOpt
-
-
Constructor Summary
Constructors Constructor Description GrepCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdescription()intexecute(String fullCommand, org.apache.commons.cli.CommandLine cl, Shell shellState)org.apache.commons.cli.OptionsgetOptions()intnumArgs()If the number of arguments is not always zero (not including those arguments handled through Options), make sure to override theShell.Command.usage()method.protected voidsetUpIterator(int prio, String name, String term, BatchScanner scanner, org.apache.commons.cli.CommandLine cl, boolean negate)Stringusage()-
Methods inherited from class org.apache.accumulo.shell.commands.ScanCommand
addScanIterators, fetchColumns, getAuths, getConsistency, getFormatter, getInterpreter, getOutputFile, getRange, getTimeout, getUseSample, printRecords, setupSampling
-
Methods inherited from class org.apache.accumulo.shell.Shell.Command
getName, getOptionsWithHelp, printHelp, printHelp, registerCompletion, registerCompletionForCommands, registerCompletionForNamespaces, registerCompletionForTables, registerCompletionForUsers, registerCompletionGeneral
-
-
-
-
Method Detail
-
execute
public int execute(String fullCommand, org.apache.commons.cli.CommandLine cl, Shell shellState) throws Exception
- Overrides:
executein classScanCommand- Throws:
Exception
-
setUpIterator
protected void setUpIterator(int prio, String name, String term, BatchScanner scanner, org.apache.commons.cli.CommandLine cl, boolean negate) throws Exception- Throws:
Exception
-
description
public String description()
- Overrides:
descriptionin classScanCommand
-
getOptions
public org.apache.commons.cli.Options getOptions()
- Overrides:
getOptionsin classScanCommand
-
usage
public String usage()
- Overrides:
usagein classShell.Command
-
numArgs
public int numArgs()
Description copied from class:Shell.CommandIf the number of arguments is not always zero (not including those arguments handled through Options), make sure to override theShell.Command.usage()method. Otherwise,Shell.Command.usage()does need to be overridden.- Overrides:
numArgsin classScanCommand
-
-