Package com.tinkerpop.blueprints.pgm.impls.orientdb

Examples of com.tinkerpop.blueprints.pgm.impls.orientdb.OrientGraph.shutdown()


    final long startTime = System.currentTimeMillis();

    g.setTransactionMode(Mode.MANUAL);

    GraphMLReader.inputGraph(g, new FileInputStream(inputFile), 100000, null, null, null);
    g.shutdown();

    System.out.println("Imported in " + (System.currentTimeMillis() - startTime) + "ms. Vertexes: "
        + g.getRawGraph().countVertexes() + " Edges: " + g.getRawGraph().countEdges());

  }
View Full Code Here


    final long startTime = System.currentTimeMillis();

    g.setTransactionMode(Mode.MANUAL);

    GraphMLReader.inputGraph(g, new FileInputStream(inputFile), 0, null, null, null);
    g.shutdown();

    System.out.println("Imported in " + (System.currentTimeMillis() - startTime) + "ms. Vertexes: "
        + g.getRawGraph().countVertexes() + " Edges: " + g.getRawGraph().countEdges());

  }
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.