Class VertexProgramStep
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep<ComputerResult,ComputerResult>
-
- org.apache.tinkerpop.gremlin.process.computer.traversal.step.map.VertexProgramStep
-
- All Implemented Interfaces:
Serializable,Cloneable,Iterator<Traverser.Admin<ComputerResult>>,VertexComputing,Step<ComputerResult,ComputerResult>
- Direct Known Subclasses:
ConnectedComponentVertexProgramStep,PageRankVertexProgramStep,PeerPressureVertexProgramStep,ProgramVertexProgramStep,ShortestPathVertexProgramStep,TraversalVertexProgramStep
public abstract class VertexProgramStep extends AbstractStep<ComputerResult,ComputerResult> implements VertexComputing
- Author:
- Marko A. Rodriguez (http://markorodriguez.com), Stephen Mallette (http://stephen.genoprime.com)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Computercomputerprotected booleanfirststatic StringROOT_TRAVERSALstatic StringSTEP_ID-
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 VertexProgramStep(Traversal.Admin traversal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputergetComputer()Get theComputerfor generating theGraphComputer.protected booleanisEndStep()protected booleanpreviousTraversalVertexProgram()protected Traverser.Admin<ComputerResult>processNextStart()voidsetComputer(Computer computer)Set theComputerto be used to generate theGraphComputer.-
Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep
addLabel, addStart, addStarts, clearLabels, clone, equals, getId, getLabels, getNextStep, getPreviousStep, getStarts, getTraversal, hashCode, hasNext, hasStarts, isTraverserStepIdAndLabelsSetByChild, next, prepareTraversalForNextStep, removeLabel, reset, setId, setNextStep, setPreviousStep, setTraversal, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Step
equals, getRequirements
-
Methods inherited from interface org.apache.tinkerpop.gremlin.process.computer.traversal.step.VertexComputing
generateProgram
-
-
-
-
Field Detail
-
ROOT_TRAVERSAL
public static final String ROOT_TRAVERSAL
- See Also:
- Constant Field Values
-
STEP_ID
public static final String STEP_ID
- See Also:
- Constant Field Values
-
computer
protected Computer computer
-
first
protected boolean first
-
-
Constructor Detail
-
VertexProgramStep
public VertexProgramStep(Traversal.Admin traversal)
-
-
Method Detail
-
processNextStart
protected Traverser.Admin<ComputerResult> processNextStart() throws NoSuchElementException
- Specified by:
processNextStartin classAbstractStep<ComputerResult,ComputerResult>- Throws:
NoSuchElementException
-
getComputer
public Computer getComputer()
Description copied from interface:VertexComputingGet theComputerfor generating theGraphComputer. Inferences on the state of theStepwithin theTraversalcan be use applied here.- Specified by:
getComputerin interfaceVertexComputing- Returns:
- the computer specification for generating the graph computer.
-
setComputer
public void setComputer(Computer computer)
Description copied from interface:VertexComputingSet theComputerto be used to generate theGraphComputer.- Specified by:
setComputerin interfaceVertexComputing- Parameters:
computer- the computer specification.
-
previousTraversalVertexProgram
protected boolean previousTraversalVertexProgram()
-
isEndStep
protected boolean isEndStep()
-
-