public final class TraversalVertexProgramStep extends VertexProgramStep implements TraversalParent
| Modifier and Type | Field and Description |
|---|---|
PureTraversal<?,?> |
computerTraversal |
computer, first, ROOT_TRAVERSAL, STEP_IDid, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild| Constructor and Description |
|---|
TraversalVertexProgramStep(Traversal.Admin traversal,
Traversal.Admin<?,?> computerTraversal) |
| Modifier and Type | Method and Description |
|---|---|
TraversalVertexProgramStep |
clone()
Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.
|
TraversalVertexProgram |
generateProgram(Graph graph,
Memory memory)
Generate the
VertexProgram. |
List<Traversal.Admin<?,?>> |
getGlobalChildren() |
Set<TraverserRequirement> |
getRequirements()
Provide the necessary
TraverserRequirement that must be met by the traverser in order for the step to
function properly. |
void |
setComputerTraversal(Traversal.Admin<?,?> computerTraversal) |
void |
setTraversal(Traversal.Admin<?,?> parentTraversal)
Set the
Traversal that this step is contained within. |
String |
toString() |
getComputer, isEndStep, previousTraversalVertexProgram, processNextStart, setComputeraddLabel, addStart, addStarts, equals, getId, getLabels, getNextStep, getPreviousStep, getStarts, getTraversal, hashCode, hasNext, hasStarts, isTraverserStepIdAndLabelsSetByChild, next, prepareTraversalForNextStep, removeLabel, reset, setId, setNextStep, setPreviousStepfinalize, getClass, notify, notifyAll, wait, wait, waitaddGlobalChild, addLocalChild, asStep, close, getLocalChildren, getSelfAndChildRequirements, integrateChild, removeGlobalChild, removeLocalChild, replaceLocalChildforEachRemaining, removepublic PureTraversal<?,?> computerTraversal
public TraversalVertexProgramStep(Traversal.Admin traversal, Traversal.Admin<?,?> computerTraversal)
public List<Traversal.Admin<?,?>> getGlobalChildren()
getGlobalChildren in interface TraversalParentpublic void setComputerTraversal(Traversal.Admin<?,?> computerTraversal)
public String toString()
toString in class AbstractStep<ComputerResult,ComputerResult>public Set<TraverserRequirement> getRequirements()
StepTraverserRequirement that must be met by the traverser in order for the step to
function properly. The provided default implements returns an empty set.getRequirements in interface Step<ComputerResult,ComputerResult>public TraversalVertexProgram generateProgram(Graph graph, Memory memory)
VertexComputingVertexProgram.generateProgram in interface VertexComputinggraph - the Graph that the program will be executed over.memory - the Memory from the previous OLAP job if it exists, else its an empty memory structure.public TraversalVertexProgramStep clone()
StepStep.reset() is called. Moreover, the previous and next steps should be set to EmptyStep.clone in interface Step<ComputerResult,ComputerResult>clone in class AbstractStep<ComputerResult,ComputerResult>public void setTraversal(Traversal.Admin<?,?> parentTraversal)
StepTraversal that this step is contained within.setTraversal in interface Step<ComputerResult,ComputerResult>setTraversal in class AbstractStep<ComputerResult,ComputerResult>parentTraversal - the new traversal for this stepCopyright © 2013–2022 Apache Software Foundation. All rights reserved.