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>
public class MergeVertexStep<S> extends MergeElementStep<S,Vertex,Map<Object,Object>>
Implementation for themergeV()step covering both the start step version and the one used mid-traversal.- See Also:
- Serialized Form
-
-
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, usesPartitionStrategy
-
Fields inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild
-
Fields inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.map.MergeStepContract
CONCRETE_STEPS
-
-
Constructor Summary
Constructors Constructor Description MergeVertexStep(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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MergeVertexStep<S>clone()Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.protected Iterator<Vertex>flatMap(Traverser.Admin<S> traverser)protected SetgetAllowedTokens()protected 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
-
Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.map.FlatMapStep
closeIterator
-
Methods 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, setPreviousStep
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.map.MergeStepContract
getMergeMapWithGValue, getOnCreateMapWithGValue, getOnMatchMapWithGValue
-
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.PropertiesHolder
getPropertiesWithGValues
-
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.TraversalParent
addGlobalChild, addLocalChild, asStep, close, getGlobalChildren, getPopInstructions, getSelfAndChildRequirements, integrateChild, removeGlobalChild, removeLocalChild, replaceLocalChild
-
-
-
-
Constructor Detail
-
MergeVertexStep
public MergeVertexStep(Traversal.Admin traversal, boolean isStart)
-
MergeVertexStep
public MergeVertexStep(Traversal.Admin traversal, boolean isStart, Map<Object,Object> merge)
-
MergeVertexStep
public MergeVertexStep(Traversal.Admin traversal, boolean isStart, Traversal.Admin<S,Map<Object,Object>> mergeTraversal)
-
-
Method Detail
-
validateMapInput
public static void validateMapInput(Map map, boolean ignoreTokens)
-
clone
public MergeVertexStep<S> 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
protected Set getAllowedTokens()
- Specified by:
getAllowedTokensin classMergeElementStep<S,Vertex,Map<Object,Object>>
-
flatMap
protected Iterator<Vertex> flatMap(Traverser.Admin<S> traverser)
-
onCreateMap
protected Map onCreateMap(Traverser.Admin<S> traverser, Map mergeMap)
Fuse the mergeMap with any additional key/values from the onCreateTraversal. No overrides allowed.
-
-