Package com.orientechnologies.orient.core.db.graph

Examples of com.orientechnologies.orient.core.db.graph.OGraphDatabase.open()


  public void f() {
    OSQLEngine.getInstance().registerFunction(OSQLFunctionGremlin.NAME, OSQLFunctionGremlin.class);

    OGraphDatabase db = new OGraphDatabase("local:C:/temp/databases/gremlin");
    if (db.exists())
      db.open("admin", "admin");
    else
      db.create();

    // ODocument vertex1 = (ODocument) db.createVertex().field("label", "car").save();
    // ODocument vertex2 = (ODocument) db.createVertex().field("label", "pilot").save();
View Full Code Here


  public void f() {
    OSQLEngine.getInstance().registerFunction(OSQLFunctionGremlin.NAME, OSQLFunctionGremlin.class);

    OGraphDatabase db = new OGraphDatabase("local:C:/temp/databases/gremlin");
    if (db.exists())
      db.open("admin", "admin");
    else
      db.create();

    // ODocument vertex1 = (ODocument) db.createVertex().field("label", "car").save();
    // ODocument vertex2 = (ODocument) db.createVertex().field("label", "pilot").save();
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.