Package org.openntf.domino.graph

Examples of org.openntf.domino.graph.DominoGraph.addVertex()


      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);
View Full Code Here


      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...");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.