Class ScriptTraversal<S,E>

java.lang.Object
org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal<S,E>
org.apache.tinkerpop.gremlin.process.traversal.util.ScriptTraversal<S,E>
All Implemented Interfaces:
Serializable, AutoCloseable, Cloneable, Iterator<E>, Traversal<S,E>, Traversal.Admin<S,E>

public final class ScriptTraversal<S,E> extends DefaultTraversal<S,E>
ScriptTraversal encapsulates a ScriptEngine and a script which is compiled into a Traversal at Traversal.Admin.applyStrategies(). This is useful for serializing traversals as the compilation can happen on the remote end where the traversal will ultimately be processed.
Author:
Marko A. Rodriguez (http://markorodriguez.com)
See Also: