public final class AddPropertyStep<S extends Element> extends SideEffectStep<S> implements Mutating<Event.ElementPropertyChangedEvent>
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdSetByChild
Constructor and Description |
---|
AddPropertyStep(Traversal.Admin traversal,
String key,
Object value,
Object... vertexPropertyKeyValues) |
AddPropertyStep(Traversal.Admin traversal,
VertexProperty.Cardinality cardinality,
String key,
Object value,
Object... vertexPropertyKeyValues) |
Modifier and Type | Method and Description |
---|---|
VertexProperty.Cardinality |
getCardinality() |
String |
getKey() |
CallbackRegistry<Event.ElementPropertyChangedEvent> |
getMutatingCallbackRegistry()
Gets the callback registry for events that the step raises.
|
Set<TraverserRequirement> |
getRequirements()
Provide the necessary
TraverserRequirement that must be met by the traverser in order for the step to function properly. |
Object |
getValue() |
Object[] |
getVertexPropertyKeyValues() |
int |
hashCode() |
boolean |
isAsVertex() |
protected void |
sideEffect(Traverser.Admin<S> traverser) |
processNextStart
addLabel, addStart, addStarts, clone, equals, getId, getLabels, getNextStep, getPreviousStep, getTraversal, hasNext, next, removeLabel, reset, setId, setNextStep, setPreviousStep, setTraversal, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
forEachRemaining, remove
public AddPropertyStep(Traversal.Admin traversal, VertexProperty.Cardinality cardinality, String key, Object value, Object... vertexPropertyKeyValues)
public AddPropertyStep(Traversal.Admin traversal, String key, Object value, Object... vertexPropertyKeyValues)
public VertexProperty.Cardinality getCardinality()
public String getKey()
public Object getValue()
public Object[] getVertexPropertyKeyValues()
public boolean isAsVertex()
protected void sideEffect(Traverser.Admin<S> traverser)
sideEffect
in class SideEffectStep<S extends Element>
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.public CallbackRegistry<Event.ElementPropertyChangedEvent> getMutatingCallbackRegistry()
Mutating
getMutatingCallbackRegistry
in interface Mutating<Event.ElementPropertyChangedEvent>
Copyright © 2013–2015 Apache Software Foundation. All rights reserved.