Class ComputerAwareStep<S,E>
java.lang.Object
org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep<S,E>
org.apache.tinkerpop.gremlin.process.traversal.step.util.ComputerAwareStep<S,E>
- All Implemented Interfaces:
Serializable,Cloneable,Iterator<Traverser.Admin<E>>,Step<S,,E> GraphComputing
- Direct Known Subclasses:
BranchStep,MatchStep,RepeatStep,RepeatStep.RepeatEndStep
- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.protected abstract Iterator<Traverser.Admin<E>>voidThe step will be executing on aGraphComputer.protected Traverser.Admin<E>voidreset()Reset the state of the step such that it has no incoming starts.protected abstract Iterator<Traverser.Admin<E>>Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep
addLabel, addStart, addStarts, clearLabels, equals, getId, getLabels, getNextStep, getPreviousStep, getStarts, getTraversal, hashCode, hasNext, hasStarts, isTraverserStepIdAndLabelsSetByChild, next, prepareTraversalForNextStep, removeLabel, setId, setNextStep, setPreviousStep, setTraversal, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.GraphComputing
atMasterMethods inherited from interface java.util.Iterator
forEachRemaining, removeMethods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Step
equals, getRequirements
-
Constructor Details
-
ComputerAwareStep
-
-
Method Details
-
processNextStart
- Specified by:
processNextStartin classAbstractStep<S,E> - Throws:
NoSuchElementException
-
onGraphComputer
public void onGraphComputer()Description copied from interface:GraphComputingThe step will be executing on aGraphComputer.- Specified by:
onGraphComputerin interfaceGraphComputing
-
clone
Description copied from interface:StepCloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication. When cloning a step, it is important that the steps, the cloned step is equivalent to the state of the step whenStep.reset()is called. Moreover, the previous and next steps should be set toEmptyStep. -
reset
public void reset()Description copied from interface:StepReset the state of the step such that it has no incoming starts. Internal states are to be reset, but any sideEffect data structures are not to be recreated. -
standardAlgorithm
- Throws:
NoSuchElementException
-
computerAlgorithm
- Throws:
NoSuchElementException
-