public final class AddVertexStep<S> extends MapStep<S,Vertex> implements Mutating<Event.VertexAddedEvent>, TraversalParent, Parameterizing, Scoping
Scoping.Variable
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild
Constructor and Description |
---|
AddVertexStep(Traversal.Admin traversal,
String label) |
AddVertexStep(Traversal.Admin traversal,
Traversal.Admin<S,String> vertexLabelTraversal) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyMutations(Object... keyValues) |
AddVertexStep<S> |
clone()
Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.
|
<S,E> List<Traversal.Admin<S,E>> |
getLocalChildren() |
CallbackRegistry<Event.VertexAddedEvent> |
getMutatingCallbackRegistry()
Gets the callback registry for events that the step raises.
|
Parameters |
getParameters()
Gets the parameters on the step.
|
Set<TraverserRequirement> |
getRequirements()
Provide the necessary
TraverserRequirement that must be met by the traverser in order for the step to function properly. |
Set<String> |
getScopeKeys()
Get the labels that this scoping step will access during the traversal
|
int |
hashCode() |
protected Vertex |
map(Traverser.Admin<S> traverser) |
void |
setTraversal(Traversal.Admin<?,?> parentTraversal)
Set the
Traversal that this step is contained within. |
String |
toString() |
processNextStart
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
getNullableScopeValue, getScopeValue
forEachRemaining, remove
public AddVertexStep(Traversal.Admin traversal, String label)
public AddVertexStep(Traversal.Admin traversal, Traversal.Admin<S,String> vertexLabelTraversal)
public Parameters getParameters()
Parameterizing
getParameters
in interface Parameterizing
public Set<String> getScopeKeys()
Scoping
getScopeKeys
in interface Scoping
public <S,E> List<Traversal.Admin<S,E>> getLocalChildren()
getLocalChildren
in interface TraversalParent
public void addPropertyMutations(Object... keyValues)
addPropertyMutations
in interface Mutating<Event.VertexAddedEvent>
public CallbackRegistry<Event.VertexAddedEvent> getMutatingCallbackRegistry()
Mutating
getMutatingCallbackRegistry
in interface Mutating<Event.VertexAddedEvent>
public int hashCode()
hashCode
in class AbstractStep<S,Vertex>
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<S,Vertex>
public String toString()
toString
in class AbstractStep<S,Vertex>
public void setTraversal(Traversal.Admin<?,?> parentTraversal)
Step
Traversal
that this step is contained within.setTraversal
in interface Step<S,Vertex>
setTraversal
in class AbstractStep<S,Vertex>
parentTraversal
- the new traversal for this steppublic AddVertexStep<S> clone()
Step
EmptyStep
.Copyright © 2013–2019 Apache Software Foundation. All rights reserved.