Class MergeVertexStep<S>
java.lang.Object
org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep<S,E>
org.apache.tinkerpop.gremlin.process.traversal.step.map.FlatMapStep<S,E>
org.apache.tinkerpop.gremlin.process.traversal.step.map.MergeElementStep<S,Vertex,Map<Object,Object>>
org.apache.tinkerpop.gremlin.process.traversal.step.map.MergeVertexStep<S>
- All Implemented Interfaces:
Serializable,AutoCloseable,Cloneable,Iterator<Traverser.Admin<Vertex>>,Step<S,,Vertex> Deleting<Event>,MergeStepContract<S,,Vertex, Map<Object, Object>> Mutating<Event>,PopContaining,PropertiesHolder,TraversalOptionParent<Merge,,S, Map<Object, Object>> TraversalParent,Writing<Event>
Implementation for the
mergeV() step covering both the start step version and the one used mid-traversal.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.PopContaining
PopContaining.PopInstruction -
Field Summary
Fields inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.map.MergeElementStep
callbackRegistry, first, isStart, mergeTraversal, onCreateTraversal, onMatchTraversal, usesPartitionStrategyFields inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChildFields inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.map.MergeStepContract
CONCRETE_STEPS -
Constructor Summary
ConstructorsConstructorDescriptionMergeVertexStep(Traversal.Admin traversal, boolean isStart) MergeVertexStep(Traversal.Admin traversal, boolean isStart, Map<Object, Object> merge) MergeVertexStep(Traversal.Admin traversal, boolean isStart, Traversal.Admin<S, Map<Object, Object>> mergeTraversal) -
Method Summary
Modifier and TypeMethodDescriptionclone()Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.flatMap(Traverser.Admin<S> traverser) protected Setprotected MaponCreateMap(Traverser.Admin<S> traverser, Map mergeMap) Fuse the mergeMap with any additional key/values from the onCreateTraversal.static voidvalidateMapInput(Map map, boolean ignoreTokens) Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.map.MergeElementStep
addChildOption, addProperty, getCallbackRegistry, getGraph, getLocalChildren, getMergeTraversal, getMutatingCallbackRegistry, getOnCreateTraversal, getOnMatchTraversal, getProperties, getRequirements, hashCode, isFirst, isStart, isUsingPartitionStrategy, materializeMap, processNextStart, removeProperty, reset, searchVertices, searchVerticesLabelConstraint, searchVerticesPropertyConstraints, searchVerticesTraversal, setMerge, setOnCreate, setOnMatch, setTraversal, toString, validate, validate, validateNoOverrides, validateStaticNoOverridesMethods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.map.FlatMapStep
closeIteratorMethods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep
addLabel, addStart, addStarts, clearLabels, equals, getId, getLabels, getNextStep, getPreviousStep, getStarts, getTraversal, hasNext, hasStarts, isTraverserStepIdAndLabelsSetByChild, next, prepareTraversalForNextStep, removeLabel, setId, setNextStep, setPreviousStepMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, removeMethods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.map.MergeStepContract
getMergeMapWithGValue, getOnCreateMapWithGValue, getOnMatchMapWithGValueMethods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.PropertiesHolder
getPropertiesWithGValuesMethods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.TraversalParent
addGlobalChild, addLocalChild, asStep, close, getGlobalChildren, getPopInstructions, getSelfAndChildRequirements, integrateChild, removeGlobalChild, removeLocalChild, replaceLocalChild
-
Constructor Details
-
MergeVertexStep
-
MergeVertexStep
-
MergeVertexStep
public MergeVertexStep(Traversal.Admin traversal, boolean isStart, Traversal.Admin<S, Map<Object, Object>> mergeTraversal)
-
-
Method Details
-
validateMapInput
-
clone
Description copied from interface:StepCloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication. When cloning a step, it is important that the steps, the cloned step is equivalent to the state of the step whenStep.reset()is called. Moreover, the previous and next steps should be set toEmptyStep. -
getAllowedTokens
- Specified by:
getAllowedTokensin classMergeElementStep<S,Vertex, Map<Object, Object>>
-
flatMap
-
onCreateMap
Fuse the mergeMap with any additional key/values from the onCreateTraversal. No overrides allowed.
-