@Override public void removeData(final Iterator<Statement> iterator) throws CumulusStoreException { try { notifyListeners(_startChangesEvent); batchDeleteWithIDs(_dictionary.toIDQuadIterator(iterator), _batchLimit); notifyListeners(_finishedChangesEvent); } catch (final DataAccessLayerException exception) { _log.error(MessageCatalog._00093_DATA_ACCESS_LAYER_FAILURE, exception); throw new CumulusStoreException(exception); } catch (final Exception exception) { _log.error(MessageCatalog._00026_NWS_SYSTEM_INTERNAL_FAILURE, exception); throw new CumulusStoreException(exception); } }
@Override public void removeData(final Iterator<Statement> iterator) throws CumulusStoreException { try { notifyListeners(_startChangesEvent); batchDeleteWithIDs(_dictionary.toIDQuadIterator(iterator), _batchLimit); notifyListeners(_finishedChangesEvent); } catch (final DataAccessLayerException exception) { _log.error(MessageCatalog._00093_DATA_ACCESS_LAYER_FAILURE, exception); throw new CumulusStoreException(exception); } catch (final Exception exception) { _log.error(MessageCatalog._00026_NWS_SYSTEM_INTERNAL_FAILURE, exception); throw new CumulusStoreException(exception); } }
@Override public void removeData(final Value[] pattern) throws CumulusStoreException { try { if (Util.ALL_CONSTANTS.apply(pattern)) { notifyListeners(_startChangesEvent); batchDeleteWithIDs(_dictionary.toIDQuadIterator(Iterators.singletonIterator(valuesToStatement(pattern))), _batchLimit); notifyListeners(_finishedChangesEvent); } else if (Util.ALL_VARS.apply(pattern)) { clear(); } else { removeDataWithIDs(queryWithIDs(pattern)); } } catch (final DataAccessLayerException exception) { _log.error(MessageCatalog._00093_DATA_ACCESS_LAYER_FAILURE, exception); throw new CumulusStoreException(exception); } catch (final Exception exception) { _log.error(MessageCatalog._00026_NWS_SYSTEM_INTERNAL_FAILURE, exception); throw new CumulusStoreException(exception); } }
@Override public void removeData(final Value[] pattern) throws CumulusStoreException { try { if (Util.ALL_CONSTANTS.apply(pattern)) { notifyListeners(_startChangesEvent); batchDeleteWithIDs(_dictionary.toIDQuadIterator(Iterators.singletonIterator(valuesToStatement(pattern))), _batchLimit); notifyListeners(_finishedChangesEvent); } else if (Util.ALL_VARS.apply(pattern)) { clear(); } else { removeDataWithIDs(queryWithIDs(pattern)); } } catch (final DataAccessLayerException exception) { _log.error(MessageCatalog._00093_DATA_ACCESS_LAYER_FAILURE, exception); throw new CumulusStoreException(exception); } catch (final Exception exception) { _log.error(MessageCatalog._00026_NWS_SYSTEM_INTERNAL_FAILURE, exception); throw new CumulusStoreException(exception); } }