Class SetIterCommand
- java.lang.Object
-
- org.apache.accumulo.shell.Shell.Command
-
- org.apache.accumulo.shell.commands.SetIterCommand
-
- Direct Known Subclasses:
SetScanIterCommand,SetShellIterCommand
public class SetIterCommand extends Shell.Command
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.accumulo.shell.Shell.Command
Shell.Command.CompletionSet
-
-
Constructor Summary
Constructors Constructor Description SetIterCommand()
-
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 voidsetBaseOptions(org.apache.commons.cli.Options options)protected voidsetNamespaceProperties(org.apache.commons.cli.CommandLine cl, Shell shellState, int priority, Map<String,String> options, String classname, String name)protected voidsetTableProperties(org.apache.commons.cli.CommandLine cl, Shell shellState, int priority, Map<String,String> options, String classname, String name)-
Methods inherited from class org.apache.accumulo.shell.Shell.Command
getName, getOptionsWithHelp, printHelp, printHelp, registerCompletion, registerCompletionForCommands, registerCompletionForNamespaces, registerCompletionForTables, registerCompletionForUsers, registerCompletionGeneral, usage
-
-
-
-
Method Detail
-
execute
public int execute(String fullCommand, org.apache.commons.cli.CommandLine cl, Shell shellState) throws AccumuloException, AccumuloSecurityException, TableNotFoundException, IOException, ShellCommandException
- Specified by:
executein classShell.Command- Throws:
AccumuloExceptionAccumuloSecurityExceptionTableNotFoundExceptionIOExceptionShellCommandException
-
setTableProperties
protected void setTableProperties(org.apache.commons.cli.CommandLine cl, Shell shellState, int priority, Map<String,String> options, String classname, String name) throws AccumuloException, AccumuloSecurityException, ShellCommandException, TableNotFoundException
-
setNamespaceProperties
protected void setNamespaceProperties(org.apache.commons.cli.CommandLine cl, Shell shellState, int priority, Map<String,String> options, String classname, String name) throws AccumuloException, AccumuloSecurityException, ShellCommandException, NamespaceNotFoundException
-
description
public String description()
- Specified by:
descriptionin classShell.Command
-
setBaseOptions
protected void setBaseOptions(org.apache.commons.cli.Options options)
-
getOptions
public org.apache.commons.cli.Options getOptions()
- Overrides:
getOptionsin 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.- Specified by:
numArgsin classShell.Command
-
-