@Override public void purge(final RdfCloudTripleStoreConfiguration configuration) { for (final String tableName : getTables()) { try { purge(tableName, configuration.getAuths()); compact(tableName); } catch (final TableNotFoundException e) { logger.error(e.getMessage()); } catch (final MutationsRejectedException e) { logger.error(e.getMessage()); } } for(final AccumuloIndexer indexer : this.secondaryIndexers) { try { indexer.purge(configuration); } catch(final Exception e) { logger.error("Failed to purge indexer", e); } } }
@Override public void purge(final RdfCloudTripleStoreConfiguration configuration) { for (final String tableName : getTables()) { try { purge(tableName, configuration.getAuths()); compact(tableName); } catch (final TableNotFoundException e) { logger.error(e.getMessage()); } catch (final MutationsRejectedException e) { logger.error(e.getMessage()); } } for(final AccumuloIndexer indexer : this.secondaryIndexers) { try { indexer.purge(configuration); } catch(final Exception e) { logger.error("Failed to purge indexer", e); } } }
@Override public void dropAndDestroy() throws RyaDAOException { for (final String tableName : getTables()) { try { if (tableName != null) { drop(tableName); } } catch (final AccumuloSecurityException e) { logger.error(e.getMessage()); throw new RyaDAOException(e); } catch (final AccumuloException e) { logger.error(e.getMessage()); throw new RyaDAOException(e); } catch (final TableNotFoundException e) { logger.warn(e.getMessage()); } } destroy(); for(final AccumuloIndexer indexer : this.secondaryIndexers) { try { indexer.dropAndDestroy(); } catch(final Exception e) { logger.error("Failed to drop and destroy indexer", e); } } }
@Override public void dropAndDestroy() throws RyaDAOException { for (final String tableName : getTables()) { try { if (tableName != null) { drop(tableName); } } catch (final AccumuloSecurityException e) { logger.error(e.getMessage()); throw new RyaDAOException(e); } catch (final AccumuloException e) { logger.error(e.getMessage()); throw new RyaDAOException(e); } catch (final TableNotFoundException e) { logger.warn(e.getMessage()); } } destroy(); for(final AccumuloIndexer indexer : this.secondaryIndexers) { try { indexer.dropAndDestroy(); } catch(final Exception e) { logger.error("Failed to drop and destroy indexer", e); } } }