@Override protected Iterator<byte[][]> queryAsIDs(final Value[] query, final int limit) throws CumulusStoreException { try { return queryWithIDs(_dictionary.getIDs(query[0], query[1], query[2], query.length > 3 ? query[3] : null), limit); } catch (final DataAccessLayerException exception) { _log.error(MessageCatalog._00093_DATA_ACCESS_LAYER_FAILURE, exception); throw new CumulusStoreException(exception); } }
@Override protected Iterator<byte[][]> queryAsIDs(final Value[] query, final int limit) throws CumulusStoreException { try { return queryWithIDs(_dictionary.getIDs(query[0], query[1], query[2], query.length > 3 ? query[3] : null), limit); } catch (final DataAccessLayerException exception) { _log.error(MessageCatalog._00093_DATA_ACCESS_LAYER_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); } }