Package com.hp.hpl.jena.gvs.impl.filesystem

Examples of com.hp.hpl.jena.gvs.impl.filesystem.MapGraphCache


    try {
      GraphCache cache;
      if (arguments.getUseEhcahe()) {
        cache = new EhcacheGraphCache();
      } else {
        cache = new MapGraphCache();
      }
      store = new FSSToreImpl(arguments.getStorageDir(), cache);
    } catch (IOException e1) {
      throw new RuntimeException(e1);
    }
View Full Code Here


//    if (dir.exists()) {
//      FSStoreTest.delDirContent(dir);
//    } else {
//      dir.mkdirs();
//    }
    MoleculeStore moleculeStore = new FSMoleculeStore(dir, new MapGraphCache());
    addData(moleculeStore, "test12-m1.rdf");
    long size1 = getRecursiveSize(dir);
    System.out.println(size1);
    addData(moleculeStore, "test12-m1.rdf");
    long size2 = getRecursiveSize(dir);
    assertEquals(size1, size2);
    moleculeStore = new FSMoleculeStore(dir, new MapGraphCache());
    addData(moleculeStore, "test12-m1.rdf");
    long size3 = getRecursiveSize(dir);
    assertEquals(size1, size3);
  }
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.gvs.impl.filesystem.MapGraphCache

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.