@Override
  public HTableDescriptor[] deleteTables(Pattern pattern) throws IOException {
    List<HTableDescriptor> failed = new LinkedList<HTableDescriptor>();
    for (HTableDescriptor table : listTables(pattern)) {
      try {
        deleteTable(table.getTableName());
      } catch (IOException ex) {
        LOG.info("Failed to delete table " + table.getTableName(), ex);
        failed.add(table);
      }
    }
    return failed.toArray(new HTableDescriptor[failed.size()]);
  }
@ Override public HTableDescriptor [ ] deleteTables ( Pattern pattern ) throws IOException { List < HTableDescriptor > failed = new LinkedList < HTableDescriptor > ( ) ; for ( HTableDescriptor table : listTables ( pattern ) ) { try { deleteTable ( table . getTableName ( ) ) ; } catch ( IOException ex ) { LOG . info ( "Failed to delete table " + table . getTableName ( ) , ex ) ; failed . add ( table ) ; } } return failed . toArray ( new HTableDescriptor [ failed . size ( ) ] ) ; }
{@inheritDoc}