GremlinPlugin to the executor.Consumer to execute in the event of failure.Consumer to execute just after successful script evaluation.Consumer to execute if the script times out.Consumer to execute just before the script evaluation.Builder with the gremlin-groovy ScriptEngine configured.GremlinExecutor.BuilderGremlinExecutor.BuilderInterpreterModeGroovyCustomizer.ScriptEngine.ScriptEngine.CompilationCustomizer to add to the GremlinGroovyScriptEngine.ScriptEngine.Map of bindings.Function that will transform the
result after script evaluates but before transaction commit and before the returned CompletableFuture
is completed.Consumer that will take the result for additional
processing after the script evaluates and after the CompletableFuture is completed, but before the
transaction is committed.Traversal.evaluationTimeout setting on the script engine.GremlinGroovyScriptEngine.expectedCompilationTime.ScriptContext using a GremlinScriptContext which avoids a significant amount of
additional object creation on script evaluation.with() source step.ScriptEngine instance.GremlinExecutor.eval(String, String, Bindings, LifeCycle) method.Customizer.GremlinScriptEngineFactory implementation that creates GremlinGroovyScriptEngine instances.eval() on it.GremlinPlugin that provides access to low-level configuration options of the GroovyScriptEngine
itself.GroovyTranslator in gremlin-core.false argument to withParameters using
GroovyTranslator.of(String, boolean).GroovyTranslator.DefaultTypeTranslator passing the withParameters option to it
which will handle type translation in a fashion that should typically increase cache hits and reduce
compilation times if enabled at the sacrifice to rewriting of the script that could reduce readability.Result containing properties that are relevant to the checker.GremlinGroovyScriptEngine.KEY_REFERENCE_TYPE that makes the evaluated script available in the cache for the life
of the JVM.GremlinGroovyScriptEngine.KEY_REFERENCE_TYPE that immediately garbage collects the script after evaluation.GremlinGroovyScriptEngine.KEY_REFERENCE_TYPE that retains the script until memory is "low" and therefore
should be reclaimed before an OutOfMemoryError occurs.GremlinGroovyScriptEngine.KEY_REFERENCE_TYPE that marks the script as one that can be garbage collected
even when memory is abundant.GremlinGroovyScriptEngine by clearing script caches, recreating the classloader,
clearing bindings.TimedInterruptGroovyCustomizer when the timeout is exceeded.Copyright © 2013–2021 Apache Software Foundation. All rights reserved.