Class DeleteTableCommand
- java.lang.Object
-
- org.apache.accumulo.shell.Shell.Command
-
- org.apache.accumulo.shell.commands.TableOperation
-
- org.apache.accumulo.shell.commands.DeleteTableCommand
-
- Direct Known Subclasses:
DropTableCommand
public class DeleteTableCommand extends TableOperation
-
-
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.TableOperation
optNamespace, optTableName, optTablePattern
-
-
Constructor Summary
Constructors Constructor Description DeleteTableCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdescription()protected voiddoTableOp(Shell shellState, String tableName)intexecute(String fullCommand, org.apache.commons.cli.CommandLine cl, Shell shellState)org.apache.commons.cli.OptionsgetOptions()protected voidpruneTables(Set<String> tables)Allows implementation to remove certain tables from the set of tables to be operated on.-
Methods inherited from class org.apache.accumulo.shell.commands.TableOperation
disableUnflaggedTableOptions, force, noForce, numArgs, registerCompletion, usage
-
Methods inherited from class org.apache.accumulo.shell.Shell.Command
getName, getOptionsWithHelp, printHelp, printHelp, 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 classTableOperation- Throws:
Exception
-
description
public String description()
- Overrides:
descriptionin classTableOperation
-
doTableOp
protected void doTableOp(Shell shellState, String tableName) throws Exception
- Specified by:
doTableOpin classTableOperation- Throws:
Exception
-
getOptions
public org.apache.commons.cli.Options getOptions()
- Overrides:
getOptionsin classTableOperation
-
pruneTables
protected void pruneTables(Set<String> tables)
Description copied from class:TableOperationAllows implementation to remove certain tables from the set of tables to be operated on.- Overrides:
pruneTablesin classTableOperation- Parameters:
tables- A reference to the Set of tables to be operated on
-
-