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, onMatchTraversalid, 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, validateNoOverridescloseIteratoraddLabel, addStart, addStarts, equals, getId, getLabels, getNextStep, getPreviousStep, getStarts, getTraversal, hasNext, hasStarts, isTraverserStepIdAndLabelsSetByChild, next, prepareTraversalForNextStep, removeLabel, setId, setNextStep, setPreviousStepfinalize, getClass, notify, notifyAll, wait, wait, waitaddGlobalChild, addLocalChild, asStep, close, getGlobalChildren, getSelfAndChildRequirements, integrateChild, removeGlobalChild, removeLocalChild, replaceLocalChildforEachRemaining, removepublic 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()
StepStep.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.