public class AddEdgeStep<S> extends ScalarMapStep<S,Edge> implements Mutating<Event.EdgeAddedEvent>, TraversalParent, Scoping, FromToModulating
Scoping.KeyNotFoundException, Scoping.Variableid, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild| Constructor and Description | 
|---|
| AddEdgeStep(Traversal.Admin traversal,
           String edgeLabel) | 
| AddEdgeStep(Traversal.Admin traversal,
           Traversal.Admin<S,String> edgeLabelTraversal) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addFrom(Traversal.Admin<?,?> fromObject) | 
| void | addTo(Traversal.Admin<?,?> toObject) | 
| AddEdgeStep<S> | 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.EdgeAddedEvent> | 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  TraverserRequirementthat 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 Edge | map(Traverser.Admin<S> traverser) | 
| void | setTraversal(Traversal.Admin<?,?> parentTraversal)Set the  Traversalthat this step is contained within. | 
| String | toString() | 
processNextStartaddLabel, addStart, addStarts, equals, getId, getLabels, getNextStep, getPreviousStep, getStarts, getTraversal, hasNext, hasStarts, isTraverserStepIdAndLabelsSetByChild, next, prepareTraversalForNextStep, removeLabel, reset, setId, setNextStep, setPreviousStepfinalize, getClass, notify, notifyAll, wait, wait, waitaddGlobalChild, addLocalChild, asStep, close, getGlobalChildren, getSelfAndChildRequirements, integrateChild, removeGlobalChild, removeLocalChild, replaceLocalChildgetNullableScopeValue, getSafeScopeValue, getScopeValueaddFrom, addToforEachRemaining, removepublic AddEdgeStep(Traversal.Admin traversal, String edgeLabel)
public AddEdgeStep(Traversal.Admin traversal, Traversal.Admin<S,String> edgeLabelTraversal)
public <S,E> List<Traversal.Admin<S,E>> getLocalChildren()
getLocalChildren in interface TraversalParentpublic Parameters getParameters()
ParameterizinggetParameters in interface Parameterizingpublic Set<String> getScopeKeys()
ScopinggetScopeKeys in interface Scopingpublic void configure(Object... keyValues)
ConfiguringStep. 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 Configuringpublic void addTo(Traversal.Admin<?,?> toObject)
addTo in interface FromToModulatingpublic void addFrom(Traversal.Admin<?,?> fromObject)
addFrom in interface FromToModulatingprotected Edge map(Traverser.Admin<S> traverser)
map in class ScalarMapStep<S,Edge>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<S,Edge>public CallbackRegistry<Event.EdgeAddedEvent> getMutatingCallbackRegistry()
MutatinggetMutatingCallbackRegistry in interface Mutating<Event.EdgeAddedEvent>public int hashCode()
hashCode in class AbstractStep<S,Edge>public String toString()
toString in class AbstractStep<S,Edge>public void setTraversal(Traversal.Admin<?,?> parentTraversal)
StepTraversal that this step is contained within.setTraversal in interface Step<S,Edge>setTraversal in class AbstractStep<S,Edge>parentTraversal - the new traversal for this steppublic AddEdgeStep<S> clone()
StepStep.reset() is called. Moreover, the previous and next steps should be set to EmptyStep.Copyright © 2013–2022 Apache Software Foundation. All rights reserved.