org.apache.accumulo.core.util.shell.commands
Class DeleteTableCommand

java.lang.Object
  extended by org.apache.accumulo.core.util.shell.Shell.Command
      extended by org.apache.accumulo.core.util.shell.commands.TableOperation
          extended by org.apache.accumulo.core.util.shell.commands.DeleteTableCommand
Direct Known Subclasses:
DropTableCommand

public class DeleteTableCommand
extends TableOperation


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.accumulo.core.util.shell.Shell.Command
Shell.Command.CompletionSet
 
Field Summary
 
Fields inherited from class org.apache.accumulo.core.util.shell.commands.TableOperation
optNamespace, optTableName, optTablePattern
 
Constructor Summary
DeleteTableCommand()
           
 
Method Summary
 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.
 
Methods inherited from class org.apache.accumulo.core.util.shell.commands.TableOperation
disableUnflaggedTableOptions, force, noForce, numArgs, registerCompletion, usage
 
Methods inherited from class org.apache.accumulo.core.util.shell.Shell.Command
getName, getOptionsWithHelp, printHelp, printHelp, registerCompletionForCommands, registerCompletionForNamespaces, registerCompletionForTables, registerCompletionForUsers, registerCompletionGeneral
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteTableCommand

public DeleteTableCommand()
Method Detail

execute

public int execute(String fullCommand,
                   org.apache.commons.cli.CommandLine cl,
                   Shell shellState)
            throws Exception
Overrides:
execute in class TableOperation
Throws:
Exception

description

public String description()
Overrides:
description in class TableOperation

doTableOp

protected void doTableOp(Shell shellState,
                         String tableName)
                  throws Exception
Specified by:
doTableOp in class TableOperation
Throws:
Exception

getOptions

public org.apache.commons.cli.Options getOptions()
Overrides:
getOptions in class TableOperation

pruneTables

protected void pruneTables(String pattern,
                           Set<String> tables)
Description copied from class: TableOperation
Allows implementation to remove certain tables from the set of tables to be operated on.

Overrides:
pruneTables in class TableOperation
Parameters:
pattern - The pattern which tables were selected using
tables - A reference to the Set of tables to be operated on


Copyright © 2015 Apache Accumulo Project. All rights reserved.