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
public abstract class ComputerAwareStep<S,E> extends AbstractStep<S,E> implements GraphComputing
- Author:
 - Marko A. Rodriguez (http://markorodriguez.com)
 - See Also:
 - Serialized Form
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classComputerAwareStep.EndStep<S> 
- 
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 Constructor Description ComputerAwareStep(Traversal.Admin traversal) 
- 
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ComputerAwareStep<S,E>clone()Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.protected abstract Iterator<Traverser.Admin<E>>computerAlgorithm()voidonGraphComputer()The step will be executing on aGraphComputer.protected Traverser.Admin<E>processNextStart()voidreset()Reset the state of the step such that it has no incoming starts.protected abstract Iterator<Traverser.Admin<E>>standardAlgorithm()- 
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, toString 
- 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait 
- 
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.GraphComputing
atMaster 
- 
Methods inherited from interface java.util.Iterator
forEachRemaining, remove 
- 
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Step
equals, getRequirements 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
ComputerAwareStep
public ComputerAwareStep(Traversal.Admin traversal)
 
 - 
 
- 
Method Detail
- 
processNextStart
protected Traverser.Admin<E> processNextStart() throws NoSuchElementException
- 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
public ComputerAwareStep<S,E> 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
protected abstract Iterator<Traverser.Admin<E>> standardAlgorithm() throws NoSuchElementException
- Throws:
 NoSuchElementException
 
- 
computerAlgorithm
protected abstract Iterator<Traverser.Admin<E>> computerAlgorithm() throws NoSuchElementException
- Throws:
 NoSuchElementException
 
 - 
 
 -