Package org.openntf.domino.graph

Examples of org.openntf.domino.graph.DominoGraph$DominoGraphException


    @Override
    public void run() {
      long start = System.nanoTime();
      Session s = Factory.getSessionFullAccess();
      Database db = s.getDatabase(server, dbPath);
      DominoGraph graph = new DominoGraph(db);
      for (int i = 1; i <= 10000; i++) {
        Vertex v1 = graph.addVertex(null);
        v1.setProperty("Test1", i);

        Vertex v2 = graph.addVertex(null);
        v2.setProperty("Test1", i);

        graph.addEdge(null, v1, v2, "IAmInYou");
        if (i % 1000 == 0) {
          System.out.println("Iterated test " + i + " times.  Committing...");
          graph.commit();
        }
      }
      graph.commit();
      System.gc();

      long elapsed = System.nanoTime() - start;
      StringBuilder sb = new StringBuilder();
      sb.append("Thread " + Thread.currentThread().getName());
View Full Code Here

TOP

Related Classes of org.openntf.domino.graph.DominoGraph$DominoGraphException

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.