public class MergeVertexStep<S> extends MergeStep<S,Vertex,Map>
mergeV()
step covering both the start step version and the one used mid-traversal.callbackRegistry, first, isStart, mergeTraversal, onCreateTraversal, onMatchTraversal
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild
Constructor and Description |
---|
MergeVertexStep(Traversal.Admin traversal,
boolean isStart) |
MergeVertexStep(Traversal.Admin traversal,
boolean isStart,
Map merge) |
MergeVertexStep(Traversal.Admin traversal,
boolean isStart,
Traversal.Admin<S,Map> mergeTraversal) |
Modifier and Type | Method and 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 Set |
getAllowedTokens() |
protected Map |
onCreateMap(Traverser.Admin<S> traverser,
Map mergeMap)
Fuse the mergeMap with any additional key/values from the onCreateTraversal.
|
static void |
validateMapInput(Map map,
boolean ignoreTokens) |
addChildOption, configure, getCallbackRegistry, getGraph, getLocalChildren, getMergeTraversal, getMutatingCallbackRegistry, getOnCreateTraversal, getOnMatchTraversal, getParameters, getRequirements, hashCode, isFirst, isStart, materializeMap, processNextStart, reset, searchVertices, searchVerticesLabelConstraint, searchVerticesPropertyConstraints, searchVerticesTraversal, setTraversal, toString, validate, validate, validateNoOverrides
closeIterator
addLabel, addStart, addStarts, equals, getId, getLabels, getNextStep, getPreviousStep, getStarts, getTraversal, hasNext, hasStarts, isTraverserStepIdAndLabelsSetByChild, next, prepareTraversalForNextStep, removeLabel, setId, setNextStep, setPreviousStep
finalize, getClass, notify, notifyAll, wait, wait, wait
addGlobalChild, addLocalChild, asStep, close, getGlobalChildren, getSelfAndChildRequirements, integrateChild, removeGlobalChild, removeLocalChild, replaceLocalChild
forEachRemaining, remove
public MergeVertexStep(Traversal.Admin traversal, boolean isStart)
public MergeVertexStep(Traversal.Admin traversal, boolean isStart, Map merge)
public MergeVertexStep(Traversal.Admin traversal, boolean isStart, Traversal.Admin<S,Map> mergeTraversal)
public static void validateMapInput(Map map, boolean ignoreTokens)
public MergeVertexStep<S> clone()
Step
Step.reset()
is called. Moreover, the previous and next steps should be set to EmptyStep
.protected Set getAllowedTokens()
getAllowedTokens
in class MergeStep<S,Vertex,Map>
protected Iterator<Vertex> flatMap(Traverser.Admin<S> traverser)
protected Map onCreateMap(Traverser.Admin<S> traverser, Map mergeMap)
Copyright © 2013–2023 Apache Software Foundation. All rights reserved.