/** * Builds a new set with a given element class and identified by a given name. * * @param elementClass the element class. * @param name the set (identity) name. */ public PersistentSet(final Class<E> elementClass, final String name) { _map = new PersistentMap<E, byte[]>(elementClass, byte[].class, name, false, null); }
/** * Builds a new set with a given element class and identified by a given name. * * @param elementClass the element class. * @param name the set (identity) name. */ public PersistentSet(final Class<E> elementClass, final String name) { _map = new PersistentMap<E, byte[]>(elementClass, byte[].class, name, false, null); }
@Override public void initialise(final DataAccessLayerFactory factory) throws InitialisationException { _byValue = new PersistentMap<String, byte[]>( String.class, byte[].class, _indexName, false, ValueDictionaryBase.NOT_SET); _byValue.initialise(factory); _byId = new PersistentMap<byte[], String>( byte[].class, String.class, _indexName + "_REVERSE", false, ""); _byId.initialise(factory); }
@Override public void initialise(final DataAccessLayerFactory factory) throws InitialisationException { _byValue = new PersistentMap<String, byte[]>( String.class, byte[].class, _indexName, false, ValueDictionaryBase.NOT_SET); _byValue.initialise(factory); _byId = new PersistentMap<byte[], String>( byte[].class, String.class, _indexName + "_REVERSE", false, ""); _byId.initialise(factory); }
@Override protected void openInternal() throws CumulusStoreException { try { _schema = new Schema(_dictionary); _schema.initialise(_factory); } catch (final InitialisationException exception) { _log.error(MessageCatalog._00094_SCHEMA_INIT_FAILURE, exception); throw new CumulusStoreException(exception); } try { _prefix2namespace = new PersistentMap<String, String>( String.class, String.class, "PREFIX_TO_NS", false, null); _prefix2namespace.initialise(_factory); } catch (final InitialisationException exception) { _log.error(MessageCatalog._00096_PREFIX_2_NS_INIT_FAILURE, exception); throw new CumulusStoreException(exception); } _changeListeners.add(_schema); }
@Override protected void openInternal() throws CumulusStoreException { try { _schema = new Schema(_dictionary); _schema.initialise(_factory); } catch (final InitialisationException exception) { _log.error(MessageCatalog._00094_SCHEMA_INIT_FAILURE, exception); throw new CumulusStoreException(exception); } try { _prefix2namespace = new PersistentMap<String, String>( String.class, String.class, "PREFIX_TO_NS", false, null); _prefix2namespace.initialise(_factory); } catch (final InitialisationException exception) { _log.error(MessageCatalog._00096_PREFIX_2_NS_INIT_FAILURE, exception); throw new CumulusStoreException(exception); } _changeListeners.add(_schema); }
@BeforeClass public static void beforeAllTests() throws Exception { _tripleStore = newTripleStore(); _tripleStore.open(); map = new PersistentMap<String, String>(String.class, String.class, "MAP_" + randomString(), false, null); map.initialise(_tripleStore.getDataAccessLayerFactory()); }