Interface RemoteTraversal<S,E>
-
- All Superinterfaces:
AutoCloseable
,Cloneable
,Iterator<E>
,Serializable
,Traversal<S,E>
,Traversal.Admin<S,E>
- All Known Implementing Classes:
AbstractRemoteTraversal
,DriverRemoteTraversal
,EmbeddedRemoteTraversal
public interface RemoteTraversal<S,E> extends Traversal.Admin<S,E>
ARemoteTraversal
is returned fromRemoteConnection.submitAsync(Bytecode)
. It is iterated from withinRemoteStep
usingTraversal.Admin.nextTraverser()
. Implementations should typically be given a "result" from a remote source where the traversal was executed. The "result" should be an iterator which preferably has its data bulked. Note that internallyTraversal.Admin.nextTraverser()
is called from within a loop (specifically inAbstractStep.next()
that breaks properly when aNoSuchElementException
is thrown. In other words the "results" should be iterated to force that failure.- Author:
- Stephen Mallette (http://stephen.genoprime.com)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Traversal
Traversal.Admin<S,E>, Traversal.Exceptions, Traversal.Symbols
-
-
Method Summary
-
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Traversal
asAdmin, close, explain, fill, forEachRemaining, forEachRemaining, iterate, next, none, notifyClose, profile, promise, toBulkSet, toList, toSet, toStream, tryNext
-
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Traversal.Admin
addStart, addStarts, addStep, addStep, applyStrategies, clone, equals, getBytecode, getEndStep, getGraph, getParent, getSideEffects, getStartStep, getSteps, getStrategies, getTraversalSource, getTraverserGenerator, getTraverserRequirements, getTraverserSetSupplier, isLocked, isRoot, nextTraverser, removeStep, removeStep, reset, setGraph, setParent, setSideEffects, setStrategies
-
-