public class AddVertexStartStep extends AbstractStep<Vertex,Vertex> implements Mutating<Event.VertexAddedEvent>, TraversalParent, Scoping
Scoping.Variable
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild
Constructor and Description |
---|
AddVertexStartStep(Traversal.Admin traversal,
String label) |
AddVertexStartStep(Traversal.Admin traversal,
Traversal<?,String> vertexLabelTraversal) |
Modifier and Type | Method and Description |
---|---|
AddVertexStartStep |
clone()
Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.
|
void |
configure(Object... keyValues)
Accept a configuration to the
Step . |
<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 Traverser.Admin<Vertex> |
processNextStart() |
void |
reset()
Reset the state of the step such that it has no incoming starts.
|
void |
setTraversal(Traversal.Admin<?,?> parentTraversal)
Set the
Traversal that this step is contained within. |
String |
toString() |
addLabel, addStart, addStarts, equals, getId, getLabels, getNextStep, getPreviousStep, getStarts, getTraversal, hasNext, isTraverserStepIdAndLabelsSetByChild, next, prepareTraversalForNextStep, removeLabel, setId, setNextStep, setPreviousStep
finalize, getClass, notify, notifyAll, wait, wait, wait
addGlobalChild, addLocalChild, asStep, close, getGlobalChildren, getSelfAndChildRequirements, integrateChild, removeGlobalChild, removeLocalChild
getNullableScopeValue, getScopeValue
forEachRemaining, remove
public AddVertexStartStep(Traversal.Admin traversal, String label)
public AddVertexStartStep(Traversal.Admin traversal, Traversal<?,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 configure(Object... keyValues)
Configuring
Step
. Note that this interface extends Parameterizing
and so
there is an expectation that the Step
implementation will have a Parameters
instance that will
house any values passed to this method. Storing these configurations in Parameters
is not a requirement
however, IF the configuration is an expected option for the step and can be stored on a member field that can
be accessed on the step by more direct means (i.e. like a getter method).configure
in interface Configuring
protected Traverser.Admin<Vertex> processNextStart()
processNextStart
in class AbstractStep<Vertex,Vertex>
public CallbackRegistry<Event.VertexAddedEvent> getMutatingCallbackRegistry()
Mutating
getMutatingCallbackRegistry
in interface Mutating<Event.VertexAddedEvent>
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<Vertex,Vertex>
public int hashCode()
hashCode
in class AbstractStep<Vertex,Vertex>
public void reset()
Step
public String toString()
toString
in class AbstractStep<Vertex,Vertex>
public void setTraversal(Traversal.Admin<?,?> parentTraversal)
Step
Traversal
that this step is contained within.setTraversal
in interface Step<Vertex,Vertex>
setTraversal
in class AbstractStep<Vertex,Vertex>
parentTraversal
- the new traversal for this steppublic AddVertexStartStep clone()
Step
Step.reset()
is called. Moreover, the previous and next steps should be set to EmptyStep
.Copyright © 2013–2022 Apache Software Foundation. All rights reserved.