Class MergeEdgeStep<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.MergeStep<S,Edge,Object>
- 
- org.apache.tinkerpop.gremlin.process.traversal.step.map.MergeEdgeStep<S>
 
 
 
 
- 
- All Implemented Interfaces:
- Serializable,- AutoCloseable,- Cloneable,- Iterator<Traverser.Admin<Edge>>,- Step<S,Edge>,- Configuring,- Deleting<Event>,- Mutating<Event>,- Parameterizing,- TraversalOptionParent<Merge,S,Object>,- TraversalParent,- Writing<Event>
 
 public class MergeEdgeStep<S> extends MergeStep<S,Edge,Object> Implementation for themergeE()step covering both the start step version and the one used mid-traversal.- See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.map.MergeStepcallbackRegistry, first, isStart, mergeTraversal, onCreateTraversal, onMatchTraversal
 - 
Fields inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStepid, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild
 
- 
 - 
Constructor SummaryConstructors Constructor Description MergeEdgeStep(Traversal.Admin traversal, boolean isStart)MergeEdgeStep(Traversal.Admin traversal, boolean isStart, Map merge)MergeEdgeStep(Traversal.Admin traversal, boolean isStart, Traversal.Admin<S,Map> mergeTraversal)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChildOption(Merge token, Traversal.Admin<S,Object> traversalOption)MergeEdgeStep<S>clone()Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.protected Iterator<Edge>flatMap(Traverser.Admin<S> traverser)protected SetgetAllowedTokens()Traversal.Admin<S,Object>getInVTraversal()Gets the traversal that will be used to provide theMapthat will be used to identify the Direction.IN vertex during merge.<S,C>
 List<Traversal.Admin<S,C>>getLocalChildren()Traversal.Admin<S,Object>getOutVTraversal()Gets the traversal that will be used to provide theMapthat will be used to identify the Direction.OUT vertex during merge.inthashCode()protected MaponCreateMap(Traverser.Admin<S> traverser, Map unresolvedMergeMap, Map mergeMap)voidreset()Reset the state of the step such that it has no incoming starts.protected VertexresolveVertex(Object arg)protected voidresolveVertex(Merge token, Direction direction, Map map, Traverser.Admin<S> traverser, Traversal.Admin<S,Object> traversal)protected VertexresolveVertex(Traverser.Admin<S> traverser, Traversal.Admin<S,Object> traversal)protected Map<?,?>resolveVertices(Map map, Traverser.Admin<S> traverser)protected CloseableIterator<Edge>searchEdges(Map search)Translate the Map into search criteria.voidsetTraversal(Traversal.Admin<?,?> parentTraversal)Set theTraversalthat this step is contained within.StringtoString()protected VertextryAttachVertex(Vertex v)static voidvalidateMapInput(Map map, boolean ignoreTokens)- 
Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.map.MergeStepconfigure, getCallbackRegistry, getGraph, getMergeTraversal, getMutatingCallbackRegistry, getOnCreateTraversal, getOnMatchTraversal, getParameters, getRequirements, isFirst, isStart, materializeMap, processNextStart, searchVertices, searchVerticesLabelConstraint, searchVerticesPropertyConstraints, searchVerticesTraversal, validate, validate, validateNoOverrides
 - 
Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.map.FlatMapStepcloseIterator
 - 
Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStepaddLabel, addStart, addStarts, equals, getId, getLabels, getNextStep, getPreviousStep, getStarts, getTraversal, hasNext, hasStarts, isTraverserStepIdAndLabelsSetByChild, next, prepareTraversalForNextStep, removeLabel, setId, setNextStep, setPreviousStep
 - 
Methods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface java.util.IteratorforEachRemaining, remove
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.TraversalParentaddGlobalChild, addLocalChild, asStep, close, getGlobalChildren, getSelfAndChildRequirements, integrateChild, removeGlobalChild, removeLocalChild, replaceLocalChild
 
- 
 
- 
- 
- 
Constructor Detail- 
MergeEdgeSteppublic MergeEdgeStep(Traversal.Admin traversal, boolean isStart) 
 - 
MergeEdgeSteppublic MergeEdgeStep(Traversal.Admin traversal, boolean isStart, Map merge) 
 - 
MergeEdgeSteppublic MergeEdgeStep(Traversal.Admin traversal, boolean isStart, Traversal.Admin<S,Map> mergeTraversal) 
 
- 
 - 
Method Detail- 
validateMapInputpublic static void validateMapInput(Map map, boolean ignoreTokens) 
 - 
getOutVTraversalpublic Traversal.Admin<S,Object> getOutVTraversal() Gets the traversal that will be used to provide theMapthat will be used to identify the Direction.OUT vertex during merge.
 - 
getInVTraversalpublic Traversal.Admin<S,Object> getInVTraversal() Gets the traversal that will be used to provide theMapthat will be used to identify the Direction.IN vertex during merge.
 - 
addChildOptionpublic void addChildOption(Merge token, Traversal.Admin<S,Object> traversalOption) Description copied from interface:TraversalOptionParentThe child as defined by the token it takes, likePickorMerge. This traversal may be of local or global scope depending on the step implementation that works withoption().- Specified by:
- addChildOptionin interface- TraversalOptionParent<Merge,S,Object>
- Overrides:
- addChildOptionin class- MergeStep<S,Edge,Object>
 
 - 
getLocalChildrenpublic <S,C> List<Traversal.Admin<S,C>> getLocalChildren() - Specified by:
- getLocalChildrenin interface- TraversalParent
- Overrides:
- getLocalChildrenin class- MergeStep<S,Edge,Object>
 
 - 
resetpublic void reset() Description copied from interface:StepReset the state of the step such that it has no incoming starts. Internal states are to be reset, but any sideEffect data structures are not to be recreated.
 - 
setTraversalpublic void setTraversal(Traversal.Admin<?,?> parentTraversal) Description copied from interface:StepSet theTraversalthat this step is contained within.- Specified by:
- setTraversalin interface- Step<S,Edge>
- Overrides:
- setTraversalin class- MergeStep<S,Edge,Object>
- Parameters:
- parentTraversal- the new traversal for this step
 
 - 
clonepublic MergeEdgeStep<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.
 - 
getAllowedTokensprotected Set getAllowedTokens() - Specified by:
- getAllowedTokensin class- MergeStep<S,Edge,Object>
 
 - 
searchEdgesprotected CloseableIterator<Edge> searchEdges(Map search) Translate the Map into search criteria. Default implementation is to translate the Map into a g.E() or g.V().out/inE() traversal. Graph providers will presumably optimize this traversal to use whatever indices are present and appropriate for efficiency. Callers are responsible for closing this iterator when finished.
 - 
resolveVerticesprotected Map<?,?> resolveVertices(Map map, Traverser.Admin<S> traverser) 
 - 
resolveVertexprotected void resolveVertex(Merge token, Direction direction, Map map, Traverser.Admin<S> traverser, Traversal.Admin<S,Object> traversal) 
 - 
flatMapprotected Iterator<Edge> flatMap(Traverser.Admin<S> traverser) 
 - 
onCreateMapprotected Map onCreateMap(Traverser.Admin<S> traverser, Map unresolvedMergeMap, Map mergeMap) 
 - 
resolveVertexprotected Vertex resolveVertex(Traverser.Admin<S> traverser, Traversal.Admin<S,Object> traversal) 
 
- 
 
-