Class InsertCommand
java.lang.Object
org.apache.accumulo.shell.Shell.Command
org.apache.accumulo.shell.commands.InsertCommand
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.accumulo.shell.Shell.Command
Shell.Command.CompletionSet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintorg.apache.commons.cli.Optionsprotected longgetTimeout(org.apache.commons.cli.CommandLine cl) 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.usage()Methods inherited from class org.apache.accumulo.shell.Shell.Command
getName, getOptionsWithHelp, printHelp, printHelp, registerCompletion, registerCompletionForCommands, registerCompletionForNamespaces, registerCompletionForTables, registerCompletionForUsers, registerCompletionGeneral
-
Constructor Details
-
InsertCommand
public InsertCommand()
-
-
Method Details
-
getTimeout
protected long getTimeout(org.apache.commons.cli.CommandLine cl) -
execute
public int execute(String fullCommand, org.apache.commons.cli.CommandLine cl, Shell shellState) throws AccumuloException, AccumuloSecurityException, TableNotFoundException, IOException, ConstraintViolationException - Specified by:
executein classShell.Command- Throws:
AccumuloExceptionAccumuloSecurityExceptionTableNotFoundExceptionIOExceptionConstraintViolationException
-
description
- Specified by:
descriptionin classShell.Command
-
usage
- Overrides:
usagein classShell.Command
-
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
-