@Override protected void removeDataWithIDs(final Iterator<byte[][]> triples) throws DataAccessLayerException { notifyListeners(_startChangesEvent); batchDeleteWithIDs(triples, _batchLimit); notifyListeners(_finishedChangesEvent); }
@Override protected void removeDataWithIDs(final Iterator<byte[][]> triples) throws DataAccessLayerException { notifyListeners(_startChangesEvent); batchDeleteWithIDs(triples, _batchLimit); notifyListeners(_finishedChangesEvent); }
@Override public void removeData(final Iterator<Statement> iterator) throws CumulusStoreException { try { notifyListeners(_startChangesEvent); batchDeleteWithIDs(_dictionary.toIDTripleIterator(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.toIDTripleIterator(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 protected void removeDataWithIDs(final byte[][] pattern) throws CumulusStoreException { try { if (Util.ALL_CONSTANTS_WITH_IDS.apply(pattern)) { notifyListeners(_startChangesEvent); batchDeleteWithIDs(Iterators.singletonIterator(pattern), _batchLimit); notifyListeners(_finishedChangesEvent); } 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 protected void removeDataWithIDs(final byte[][] pattern) throws CumulusStoreException { try { if (Util.ALL_CONSTANTS_WITH_IDS.apply(pattern)) { notifyListeners(_startChangesEvent); batchDeleteWithIDs(Iterators.singletonIterator(pattern), _batchLimit); notifyListeners(_finishedChangesEvent); } 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.toIDTripleIterator(Iterators.singletonIterator(CumulusRDFSesameUtil.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.toIDTripleIterator(Iterators.singletonIterator(CumulusRDFSesameUtil.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); } }