public abstract class ComputerAwareStep<S,E> extends AbstractStep<S,E> implements GraphComputing
Modifier and Type | Class and Description |
---|---|
static class |
ComputerAwareStep.EndStep<S> |
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild
Constructor and Description |
---|
ComputerAwareStep(Traversal.Admin traversal) |
Modifier and Type | Method and 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() |
void |
onGraphComputer()
The step will be executing on a
GraphComputer . |
protected Traverser.Admin<E> |
processNextStart() |
void |
reset()
Reset the state of the step such that it has no incoming starts.
|
protected abstract Iterator<Traverser.Admin<E>> |
standardAlgorithm() |
addLabel, addStart, addStarts, equals, getId, getLabels, getNextStep, getPreviousStep, getStarts, getTraversal, hashCode, hasNext, isTraverserStepIdAndLabelsSetByChild, next, prepareTraversalForNextStep, removeLabel, setId, setNextStep, setPreviousStep, setTraversal, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
atMaster, atMaster
equals, getRequirements
forEachRemaining, remove
public ComputerAwareStep(Traversal.Admin traversal)
protected Traverser.Admin<E> processNextStart() throws NoSuchElementException
processNextStart
in class AbstractStep<S,E>
NoSuchElementException
public void onGraphComputer()
GraphComputing
GraphComputer
.onGraphComputer
in interface GraphComputing
public ComputerAwareStep<S,E> clone()
Step
Step.reset()
is called. Moreover, the previous and next steps should be set to EmptyStep
.public void reset()
Step
protected abstract Iterator<Traverser.Admin<E>> standardAlgorithm() throws NoSuchElementException
NoSuchElementException
protected abstract Iterator<Traverser.Admin<E>> computerAlgorithm() throws NoSuchElementException
NoSuchElementException
Copyright © 2013–2020 Apache Software Foundation. All rights reserved.