@Override protected int execute(TableManager tableManager) throws Exception { System.out.printf("Dropping table '%s'...\n", tableName); tableManager.dropTable(tableName); System.out.printf("Table '%s' in repository '%s' dropped\n", tableName, repositoryName); return 0; }
@Override public Object dropTable(String repositoryName, String name) throws AvroInterruptedException, AvroIOException, AvroRepositoryException { try { TableManager tableMgr = repositoryManager.getRepository(repositoryName).getTableManager(); tableMgr.dropTable(name); return null; } catch (InterruptedException e) { throw converter.convert(e); } catch (IOException e) { throw converter.convert(e); } catch (RepositoryException e) { throw converter.convert(e); } }