public final class PeerPressureVertexProgramStep extends VertexProgramStep implements TraversalParent, ByModulating, TimesModulating
computer, first, ROOT_TRAVERSAL, STEP_ID
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild
Constructor and Description |
---|
PeerPressureVertexProgramStep(Traversal.Admin traversal) |
Modifier and Type | Method and Description |
---|---|
PeerPressureVertexProgramStep |
clone()
Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.
|
PeerPressureVertexProgram |
generateProgram(Graph graph,
Memory memory)
Generate the
VertexProgram . |
List<Traversal.Admin<Vertex,Edge>> |
getLocalChildren() |
Set<TraverserRequirement> |
getRequirements()
Provide the necessary
TraverserRequirement that must be met by the traverser in order for the step to function properly. |
int |
hashCode() |
void |
modulateBy(String clusterProperty) |
void |
modulateBy(Traversal.Admin<?,?> edgeTraversal) |
void |
modulateTimes(int times) |
void |
setTraversal(Traversal.Admin<?,?> parentTraversal)
Set the
Traversal that this step is contained within. |
String |
toString() |
getComputer, isEndStep, previousTraversalVertexProgram, processNextStart, setComputer
addLabel, addStart, addStarts, equals, getId, getLabels, getNextStep, getPreviousStep, getTraversal, hasNext, next, removeLabel, reset, setId, setNextStep, setPreviousStep
finalize, getClass, notify, notifyAll, wait, wait, wait
addGlobalChild, addLocalChild, asStep, close, getGlobalChildren, getSelfAndChildRequirements, integrateChild, removeGlobalChild, removeLocalChild
modulateBy, modulateBy, modulateBy, modulateBy, modulateBy, modulateBy, modulateBy, modulateBy, modulateBy, modulateBy
forEachRemaining, remove
public PeerPressureVertexProgramStep(Traversal.Admin traversal)
public int hashCode()
hashCode
in class AbstractStep<ComputerResult,ComputerResult>
public void modulateBy(Traversal.Admin<?,?> edgeTraversal)
modulateBy
in interface ByModulating
public void modulateBy(String clusterProperty)
modulateBy
in interface ByModulating
public void modulateTimes(int times)
modulateTimes
in interface TimesModulating
public List<Traversal.Admin<Vertex,Edge>> getLocalChildren()
getLocalChildren
in interface TraversalParent
public String toString()
toString
in class AbstractStep<ComputerResult,ComputerResult>
public PeerPressureVertexProgram generateProgram(Graph graph, Memory memory)
VertexComputing
VertexProgram
.generateProgram
in interface VertexComputing
graph
- 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 Set<TraverserRequirement> getRequirements()
Step
TraverserRequirement
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 PeerPressureVertexProgramStep clone()
Step
EmptyStep
.clone
in interface Step<ComputerResult,ComputerResult>
clone
in class AbstractStep<ComputerResult,ComputerResult>
public void setTraversal(Traversal.Admin<?,?> parentTraversal)
Step
Traversal
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–2017 Apache Software Foundation. All rights reserved.