public final class AddEdgeStep<S> extends FlatMapStep<S,Edge> implements Scoping, Mutating<Event.EdgeAddedEvent>
Scoping.Variable
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdSetByChild
TYPICAL_GLOBAL_REQUIREMENTS, TYPICAL_GLOBAL_REQUIREMENTS_ARRAY, TYPICAL_LOCAL_REQUIREMENTS, TYPICAL_LOCAL_REQUIREMENTS_ARRAY
Constructor and Description |
---|
AddEdgeStep(Traversal.Admin traversal,
Direction direction,
String firstVertexKey,
String edgeLabel,
String secondVertexKey,
Object... propertyKeyValues) |
Modifier and Type | Method and Description |
---|---|
protected Iterator<Edge> |
flatMap(Traverser.Admin<S> traverser) |
Direction |
getDirection() |
String |
getEdgeLabel() |
String |
getFirstVertexKey() |
CallbackRegistry<Event.EdgeAddedEvent> |
getMutatingCallbackRegistry()
Gets the callback registry for events that the step raises.
|
Object[] |
getPropertyKeyValues() |
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() |
String |
getSecondVertexKey() |
int |
hashCode() |
processNextStart, reset
addLabel, addStart, addStarts, clone, equals, getId, getLabels, getNextStep, getPreviousStep, getTraversal, hasNext, next, removeLabel, setId, setNextStep, setPreviousStep, setTraversal, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
getNullableScopeValue, getScopeValue
forEachRemaining, remove
public Direction getDirection()
public String getFirstVertexKey()
public String getEdgeLabel()
public String getSecondVertexKey()
public Object[] getPropertyKeyValues()
protected Iterator<Edge> flatMap(Traverser.Admin<S> traverser)
flatMap
in class FlatMapStep<S,Edge>
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,Edge>
public CallbackRegistry<Event.EdgeAddedEvent> getMutatingCallbackRegistry()
Mutating
getMutatingCallbackRegistry
in interface Mutating<Event.EdgeAddedEvent>
public int hashCode()
hashCode
in class AbstractStep<S,Edge>
public Set<String> getScopeKeys()
getScopeKeys
in interface Scoping
Copyright © 2013–2015 Apache Software Foundation. All rights reserved.