Package com.orientechnologies.orient.graph.gremlin

Examples of com.orientechnologies.orient.graph.gremlin.OCommandGremlin


    long start = System.currentTimeMillis();

    currentResultSet.clear();

    Object result = currentDatabase.command(new OCommandGremlin(iScriptText)).execute();

    out.println("\n" + result);

    out.printf("\nScript executed in %f sec(s).", (float) (System.currentTimeMillis() - start) / 1000);
  }
View Full Code Here


  public Object command(final String language, final String iText, final Object[] iArgs) {
    Object result = null;
    if (language.equalsIgnoreCase("sql"))
      result = graph.command(new OCommandSQL(iText)).execute(iArgs);
    else if (language.equalsIgnoreCase("gremlin"))
      result = graph.command(new OCommandGremlin(iText)).execute(iArgs);
    else
      result = graph.command(new OCommandScript(language, iText)).execute(iArgs);

    if (result instanceof Iterable<?>) {
      // FOR SAKE OF SIMPLICITY TRANSFORM ANY ITERABLE IN ARRAY
View Full Code Here

    currentResultSet.clear();

    long start = System.currentTimeMillis();
    try {
      final Object result = currentDatabase.command(new OCommandGremlin(iScriptText)).execute();

      float elapsedSeconds = (System.currentTimeMillis() - start) / 1000;

      out.println("\n" + result);
View Full Code Here

TOP

Related Classes of com.orientechnologies.orient.graph.gremlin.OCommandGremlin

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.