Package com.tinkerpop.gremlin.jsr223

Examples of com.tinkerpop.gremlin.jsr223.GremlinScriptEngineFactory


    final ODocument document = (ODocument) iCurrentRecord;

    if (engine == null) {
      try {
        engine = new GremlinScriptEngine();
      } catch (Throwable e) {
        throw new OConfigurationException("Error on loading Gremlin engine", e);
      }

      // TODO THIS COULD BE IMPROVED BY CREATING A ORIENT-GRAPH POOL (LIKE WITH OTHER DB TYPES) INSTEAD TO CREATE IT PER QUERY
View Full Code Here


  private OrientGraph    graph;

  @SuppressWarnings("unchecked")
  @Override
  public <RET extends OCommandExecutor> RET parse(OCommandRequestText iRequest) {
    engine = new GremlinScriptEngine();
    graph = new OrientGraph(iRequest.getDatabase().getURL());
    text = iRequest.getText();

    engine.getBindings(ScriptContext.ENGINE_SCOPE).put("g", graph);
    return (RET) this;
View Full Code Here

      return null;

    final ODocument document = (ODocument) iCurrentRecord;

    if (engine == null) {
      engine = new GremlinScriptEngine();
      graph = new OrientGraph(iCurrentRecord.getDatabase().getURL());
      engine.getBindings(ScriptContext.ENGINE_SCOPE).put("g", graph);
    }

    final OrientElement graphElement;
View Full Code Here

  @Override
  protected void onBefore() {
    super.onBefore();

    out.println("\nInstalling extensions for GREMLIN language v." + new GremlinScriptEngineFactory().getEngineVersion());

    OCommandManager.instance().registerRequester("gremlin", OCommandGremlin.class);

    OCommandManager.instance().registerExecutor(OCommandGremlin.class, OCommandGremlinExecutor.class);
View Full Code Here

import com.tinkerpop.gremlin.jsr223.GremlinScriptEngineFactory;

public class OGraphServerHandler extends OServerHandlerAbstract {
  @Override
  public void config(OServer oServer, OServerParameterConfiguration[] iParams) {
    OLogManager.instance().info(this, "Installing GREMLIN language v.%s", new GremlinScriptEngineFactory().getEngineVersion());
    OCommandManager.instance().registerRequester("gremlin", OCommandGremlin.class);
    OCommandManager.instance().registerExecutor(OCommandGremlin.class, OCommandGremlinExecutor.class);

    OSQLEngine.getInstance().registerFunction(OSQLFunctionGremlin.NAME, OSQLFunctionGremlin.class);
  }
View Full Code Here

TOP

Related Classes of com.tinkerpop.gremlin.jsr223.GremlinScriptEngineFactory

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.