org.apache.accumulo.core.util.shell.commands
public class DeleteTableCommand extends TableOperation
Shell.Command.CompletionSet
optNamespace, optTableName, optTablePattern
Constructor and Description |
---|
DeleteTableCommand() |
Modifier and Type | Method and Description |
---|---|
String |
description() |
protected void |
doTableOp(Shell shellState,
String tableName) |
int |
execute(String fullCommand,
org.apache.commons.cli.CommandLine cl,
Shell shellState) |
org.apache.commons.cli.Options |
getOptions() |
protected void |
pruneTables(String pattern,
Set<String> tables)
Allows implementation to remove certain tables from the set of tables to be operated on.
|
disableUnflaggedTableOptions, force, noForce, numArgs, registerCompletion, usage
getName, getOptionsWithHelp, printHelp, printHelp, registerCompletionForCommands, registerCompletionForNamespaces, registerCompletionForTables, registerCompletionForUsers, registerCompletionGeneral
public int execute(String fullCommand, org.apache.commons.cli.CommandLine cl, Shell shellState) throws Exception
execute
in class TableOperation
Exception
public String description()
description
in class TableOperation
protected void doTableOp(Shell shellState, String tableName) throws Exception
doTableOp
in class TableOperation
Exception
public org.apache.commons.cli.Options getOptions()
getOptions
in class TableOperation
protected void pruneTables(String pattern, Set<String> tables)
TableOperation
pruneTables
in class TableOperation
pattern
- The pattern which tables were selected usingtables
- A reference to the Set of tables to be operated onCopyright © 2011–2016 The Apache Software Foundation. All rights reserved.