@Override protected void initializeInternal() throws SailException { try { _store.open(); _valueFactory = new CumulusRDFValueFactory(_store.getDictionary()); } catch (final CumulusStoreException exception) { LOGGER.error(MessageCatalog._00025_CUMULUS_SYSTEM_INTERNAL_FAILURE, exception); throw new SailException(exception); } }
@Override protected void initializeInternal() throws SailException { try { _store.open(); _valueFactory = new CumulusRDFValueFactory(_store.getDictionary()); } catch (final CumulusStoreException exception) { LOGGER.error(MessageCatalog._00025_CUMULUS_SYSTEM_INTERNAL_FAILURE, exception); throw new SailException(exception); } }
/** * Returns the identifier associated with the given value. * * @param value the {@link Value}. * @return the identifier associated with the given value. * @throws DataAccessLayerException in case of Data access failure. */ byte [] id(final Value value) throws DataAccessLayerException { if (value == null) { return null; } final INativeCumulusValue nativeValue = (INativeCumulusValue) value; if (nativeValue.hasInternalID()) { return nativeValue.getInternalID(); } else { final byte [] id = _crdf.getDictionary().getID(value, false); nativeValue.setInternalID(id); return id; } } }
/** * Returns the identifier associated with the given value. * * @param value the {@link Value}. * @return the identifier associated with the given value. * @throws DataAccessLayerException in case of Data access failure. */ byte [] id(final Value value) throws DataAccessLayerException { if (value == null) { return null; } final INativeCumulusValue nativeValue = (INativeCumulusValue) value; if (nativeValue.hasInternalID()) { return nativeValue.getInternalID(); } else { final byte [] id = _crdf.getDictionary().getID(value, false); nativeValue.setInternalID(id); return id; } } }