use of com.bbn.parliament.jena.graph.index.spatial.persistence.NodeIdKeyCreator in project parliament by SemWebCentral.
the class SpatialIndex method openDB.
private void openDB() throws SpatialIndexException {
try {
Transaction t = env.beginTransaction(null, null);
catalogDb = env.openDatabase(t, CATALOG_DB, dbConfig);
catalog = new StoredClassCatalog(catalogDb);
db = env.openDatabase(t, DATA_DB, dbConfig);
secConfig.setKeyCreator(new NodeIdKeyCreator(catalog));
nodeDb = env.openSecondaryDatabase(t, ID_NODE_INDEX, db, secConfig);
t.commit();
} catch (Exception ex) {
throw new SpatialIndexException(this, "Error opening databases", ex);
}
createMaps();
}
Aggregations