Class OCommandGremlinExecutor
java.lang.Object
com.orientechnologies.orient.core.command.script.OAbstractScriptExecutor
org.apache.tinkerpop.gremlin.orientdb.executor.OCommandGremlinExecutor
- All Implemented Interfaces:
OScriptExecutor,OScriptInjection,OScriptResultHandler
public class OCommandGremlinExecutor
extends OAbstractScriptExecutor
implements OScriptInjection, OScriptResultHandler
Executes a GREMLIN command.
- Author:
- Enrico Risa (e.risa-(at)--orientdb.com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringprotected ConcurrentMap<String,OResourcePool<ODatabaseSession, ScriptEngine>> Fields inherited from class com.orientechnologies.orient.core.command.script.OAbstractScriptExecutor
EMPTY_PARAMS, language, LINES_AROUND_ERROR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacquireGraph(ODatabaseDocument database) protected final ScriptEngineacquireGremlinEngine(OrientGraph graph) voidbind(Bindings binding, ODatabaseDocument database) voidbindParameters(ScriptEngine iEngine, Map<Object, Object> iParameters) voidvoidcloseAll()execute(ODatabaseDocumentInternal database, String script, Object... params) execute(ODatabaseDocumentInternal iDatabase, String iText, Map params) executeFunction(OCommandContext context, String functionName, Map<Object, Object> iArgs) handle(Object result, ScriptEngine engine, Bindings binding, ODatabaseDocument database) protected booleanisGroovyException(Throwable throwable) protected voidreleaseGremlinEngine(String dbName, ScriptEngine engine) voidMethods inherited from class com.orientechnologies.orient.core.command.script.OAbstractScriptExecutor
bind, bindContextVariables, preExecute, registerInterceptor, throwErrorMessage, unbind, unregisterInterceptor
-
Field Details
-
GREMLIN_GROOVY
- See Also:
-
GREMLIN
- See Also:
-
pooledEngines
-
-
Constructor Details
-
OCommandGremlinExecutor
-
-
Method Details
-
execute
- Specified by:
executein interfaceOScriptExecutor
-
execute
- Specified by:
executein interfaceOScriptExecutor
-
executeFunction
public Object executeFunction(OCommandContext context, String functionName, Map<Object, Object> iArgs) - Specified by:
executeFunctionin interfaceOScriptExecutor
-
isGroovyException
-
acquireGremlinEngine
-
releaseGremlinEngine
-
bindParameters
-
acquireGraph
-
getEngineVersion
-
bind
- Specified by:
bindin interfaceOScriptInjection
-
unbind
- Specified by:
unbindin interfaceOScriptInjection
-
close
- Specified by:
closein interfaceOScriptExecutor
-
closeAll
public void closeAll()- Specified by:
closeAllin interfaceOScriptExecutor
-
handle
public Object handle(Object result, ScriptEngine engine, Bindings binding, ODatabaseDocument database) - Specified by:
handlein interfaceOScriptResultHandler
-