Package com.hp.hpl.jena.sdb

Examples of com.hp.hpl.jena.sdb.StoreDesc


            //store.getLoader().setUseThreading(true);
            //store.getLoader().setChunkSize(128);
            //@TODO cache the StoreDesc ?, Store (theyre lightweight, maybe not much advantage)
            String layout = theConfig.containsKey(LAYOUT_TYPE) ? theConfig.get(LAYOUT_TYPE).toString() : LayoutType.LayoutTripleNodesIndex.getName();
            String databaseType = theConfig.containsKey(DATABASE_TYPE) ? theConfig.get(DATABASE_TYPE).toString() : DatabaseType.MySQL.getName();
            StoreDesc desc = new StoreDesc(layout, databaseType);
            store = SDBFactory.connectStore(conn, desc);
        }
        return store;
    }
View Full Code Here


   * for SDB; result can be cached to reconnect to the store.
   * @param dbUrl
   * @return
   */
  private StoreDesc generateStoreDescSdb(String dbUrl) {
    StoreDesc storeDesc = new StoreDesc(LayoutType.LayoutTripleNodesHash, DatabaseType.Derby);
   
    SDBConnectionDesc sdbConnDesc = SDBConnectionDesc.blank();
    sdbConnDesc.setJdbcURL(dbUrl);
    sdbConnDesc.setUser("");
    sdbConnDesc.setPassword("");
View Full Code Here

      throws SimalRepositoryException {
    initialiseDerbyDatabase();

    String dbUrl = "jdbc:derby:" + constructDatabasePath(directory, dbType)
        + ";create=true";
    StoreDesc storeDesc = generateStoreDescSdb(dbUrl);
    Store store = SDBFactory.connectStore(storeDesc);

    try {
      store.getSize();
      LOGGER.info("Connected to existing SDB store");
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.sdb.StoreDesc

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.