/** * Builds a new schema for a given store. * * @param dictionary the dictionary used by the store. */ protected Schema(final ITopLevelDictionary dictionary) { _dictionary = dictionary; _classesSet = new PersistentSet<byte[]>(byte[].class, COL_CLAZZES); _dPropsSet = new PersistentSet<byte[]>(byte[].class, COL_D_PROPS); _oPropsSet = new PersistentSet<byte[]>(byte[].class, COL_O_PROPS); _classes = new DictionarySetDecorator(_classesSet, _dictionary, false); _dataProperties = new DictionarySetDecorator(_dPropsSet, _dictionary, true); _objectProperties = new DictionarySetDecorator(_oPropsSet, _dictionary, true); }
/** * Builds a new schema for a given store. * * @param dictionary the dictionary used by the store. */ protected Schema(final ITopLevelDictionary dictionary) { _dictionary = dictionary; _classesSet = new PersistentSet<byte[]>(byte[].class, COL_CLAZZES); _dPropsSet = new PersistentSet<byte[]>(byte[].class, COL_D_PROPS); _oPropsSet = new PersistentSet<byte[]>(byte[].class, COL_O_PROPS); _classes = new DictionarySetDecorator(_classesSet, _dictionary, false); _dataProperties = new DictionarySetDecorator(_dPropsSet, _dictionary, true); _objectProperties = new DictionarySetDecorator(_oPropsSet, _dictionary, true); }
public void index(final Store store, final ITopLevelDictionary dictionary) throws DataAccessLayerException { PersistentSet<byte[]> clazzes_cassandra = new PersistentSet<byte[]>(byte[].class, COL_CLAZZES); PersistentSet<byte[]> d_props_cassandra = new PersistentSet<byte[]>(byte[].class, COL_D_PROPS); PersistentSet<byte[]> o_props_cassandra = new PersistentSet<byte[]>(byte[].class, COL_O_PROPS);
public void index(final Store store, final ITopLevelDictionary dictionary) throws DataAccessLayerException { PersistentSet<byte[]> clazzes_cassandra = new PersistentSet<byte[]>(byte[].class, COL_CLAZZES); PersistentSet<byte[]> d_props_cassandra = new PersistentSet<byte[]>(byte[].class, COL_D_PROPS); PersistentSet<byte[]> o_props_cassandra = new PersistentSet<byte[]>(byte[].class, COL_O_PROPS);
@BeforeClass public static void beforeAllTests() throws Exception { _tripleStore = newTripleStore(); _tripleStore.open(); CLASS_UNDER_TEST = new PersistentSet<String>(String.class, "SET_" + randomString()); CLASS_UNDER_TEST.initialise(_tripleStore.getDataAccessLayerFactory()); }