Class DriverRemoteTraversal<S,E>
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.process.remote.traversal.AbstractRemoteTraversal<S,E>
-
- org.apache.tinkerpop.gremlin.driver.remote.DriverRemoteTraversal<S,E>
-
- All Implemented Interfaces:
Serializable
,AutoCloseable
,Cloneable
,Iterator<E>
,RemoteTraversal<S,E>
,Traversal<S,E>
,Traversal.Admin<S,E>
public class DriverRemoteTraversal<S,E> extends AbstractRemoteTraversal<S,E>
AAbstractRemoteTraversal
implementation for the Gremlin Driver. ThisTraversal
implementation is typically iterated fromRemoteStep
where thenextTraverser()
method is called. While this class provides implementations for bothnext()
andhasNext()
that unroll "bulked" results, those methods are not called directly from with TinkerPop remoting.- Author:
- Stephen Mallette (http://stephen.genoprime.com)
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Traversal
Traversal.Admin<S,E>, Traversal.Exceptions, Traversal.Symbols
-
-
Constructor Summary
Constructors Constructor Description DriverRemoteTraversal(ResultSet rs, Client client, boolean attach, Optional<org.apache.commons.configuration2.Configuration> conf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
E
next()
Traverser.Admin<E>
nextTraverser()
Note that internally#nextTraverser()
is called from within a loop (specifically inAbstractStep.next()
that breaks properly when aNoSuchElementException
is thrown.-
Methods inherited from class org.apache.tinkerpop.gremlin.process.remote.traversal.AbstractRemoteTraversal
addStep, applyStrategies, clone, getBytecode, getGraph, getParent, getSideEffects, getSteps, getStrategies, getTraverserGenerator, getTraverserRequirements, isLocked, removeStep, setGraph, setParent, setSideEffects, setStrategies
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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, equals, getEndStep, getStartStep, getTraversalSource, getTraverserSetSupplier, isRoot, removeStep, reset
-
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
next
public E next()
-
nextTraverser
public Traverser.Admin<E> nextTraverser()
Description copied from class:AbstractRemoteTraversal
Note that internally#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.- Specified by:
nextTraverser
in interfaceTraversal.Admin<S,E>
- Specified by:
nextTraverser
in classAbstractRemoteTraversal<S,E>
-
-