Class AbstractMergeElementStepPlaceholder<S,E>
- 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.AbstractMergeElementStepPlaceholder<S,E>
 
 
 
- 
- All Implemented Interfaces:
- Serializable,- AutoCloseable,- Cloneable,- Iterator<Traverser.Admin<E>>,- Step<S,E>,- Deleting<Event>,- GValueHolder<S,E>,- MergeStepContract<S,E,Map>,- Mutating<Event>,- PopContaining,- PropertiesHolder,- TraversalOptionParent<Merge,S,Map>,- TraversalParent,- Writing<Event>
 - Direct Known Subclasses:
- MergeEdgeStepPlaceholder,- MergeVertexStepPlaceholder
 
 public abstract class AbstractMergeElementStepPlaceholder<S,E> extends FlatMapStep<S,E> implements MergeStepContract<S,E,Map>, GValueHolder<S,E> - See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.PopContainingPopContaining.PopInstruction
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected booleanisStartprotected Traversal.Admin<?,Map<Object,Object>>mergeTraversalprotected Traversal.Admin<?,Map<Object,Object>>onCreateTraversalprotected Traversal.Admin<?,Map<Object,Object>>onMatchTraversalprotected Map<Object,List<Object>>properties- 
Fields inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStepid, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild
 - 
Fields inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.map.MergeStepContractCONCRETE_STEPS
 
- 
 - 
Constructor SummaryConstructors Constructor Description AbstractMergeElementStepPlaceholder(Traversal.Admin traversal, Traversal.Admin<?,Map<Object,Object>> mergeTraversal, boolean isStart)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProperty(Object key, Object value)This implementation should only be used as a mechanism for supportingPartitionStrategy.AbstractMergeElementStepPlaceholder<S,E>clone()Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.booleanequals(Object o)protected Iterator<E>flatMap(Traverser.Admin<S> traverser)Collection<GValue<?>>getGValues()List<Traversal.Admin<?,?>>getLocalChildren()Gets a list of all "local" child traversals for this step.ObjectgetMergeMapWithGValue()Gets the merge map from this step.Traversal.AdmingetMergeTraversal()CallbackRegistry<Event>getMutatingCallbackRegistry()Gets the callback registry for events that the step raises.ObjectgetOnCreateMapWithGValue()Gets the onCreate map from this step.Traversal.AdmingetOnCreateTraversal()ObjectgetOnMatchMapWithGValue()Gets the onMatch map from this step.Traversal.AdmingetOnMatchTraversal()Map<Object,List<Object>>getProperties()Map<Object,List<Object>>getPropertiesWithGValues()Set<TraverserRequirement>getRequirements()Provide the necessaryTraverserRequirementthat must be met by the traverser in order for the step to function properly.inthashCode()booleanisFirst()booleanisParameterized()booleanisStart()booleanisUsingPartitionStrategy()booleanremoveProperty(Object k)voidsetMerge(Traversal.Admin<?,Map<Object,Object>> mergeTraversal)voidsetOnCreate(Traversal.Admin<?,Map<Object,Object>> onCreateTraversal)voidsetOnMatch(Traversal.Admin<?,Map<Object,Object>> onMatchTraversal)voidsetTraversal(Traversal.Admin<?,?> parentTraversal)Set theTraversalthat this step is contained within.voidupdateVariable(String name, Object value)- 
Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.map.FlatMapStepcloseIterator, processNextStart, reset
 - 
Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStepaddLabel, addStart, addStarts, clearLabels, getId, getLabels, getNextStep, getPreviousStep, getStarts, getTraversal, hasNext, hasStarts, isTraverserStepIdAndLabelsSetByChild, next, prepareTraversalForNextStep, removeLabel, setId, setNextStep, setPreviousStep, toString
 - 
Methods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.GValueHolderasConcreteStep, reduce
 - 
Methods inherited from interface java.util.IteratorforEachRemaining, hasNext, next, remove
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.map.MergeStepContractreset
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.StepaddLabel, addStart, addStarts, clearLabels, equals, getId, getLabels, getNextStep, getPreviousStep, getTraversal, hasStarts, removeLabel, reset, setId, setNextStep, setPreviousStep
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.TraversalOptionParentaddChildOption
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.TraversalParentaddGlobalChild, addLocalChild, asStep, close, getGlobalChildren, getPopInstructions, getSelfAndChildRequirements, integrateChild, removeGlobalChild, removeLocalChild, replaceLocalChild
 
- 
 
- 
- 
- 
Field Detail- 
isStartprotected final boolean isStart 
 - 
mergeTraversalprotected Traversal.Admin<?,Map<Object,Object>> mergeTraversal 
 - 
onCreateTraversalprotected Traversal.Admin<?,Map<Object,Object>> onCreateTraversal 
 - 
onMatchTraversalprotected Traversal.Admin<?,Map<Object,Object>> onMatchTraversal 
 
- 
 - 
Constructor Detail- 
AbstractMergeElementStepPlaceholderpublic AbstractMergeElementStepPlaceholder(Traversal.Admin traversal, Traversal.Admin<?,Map<Object,Object>> mergeTraversal, boolean isStart) 
 
- 
 - 
Method Detail- 
flatMapprotected Iterator<E> flatMap(Traverser.Admin<S> traverser) - Specified by:
- flatMapin class- FlatMapStep<S,E>
 
 - 
clonepublic AbstractMergeElementStepPlaceholder<S,E> 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.
 - 
getRequirementspublic Set<TraverserRequirement> getRequirements() Description copied from interface:StepProvide the necessaryTraverserRequirementthat must be met by the traverser in order for the step to function properly. The provided default implements returns an empty set.- Specified by:
- getRequirementsin interface- MergeStepContract<S,E,Map>
- Specified by:
- getRequirementsin interface- Step<S,E>
- Returns:
- the set of requirements
 
 - 
setTraversalpublic void setTraversal(Traversal.Admin<?,?> parentTraversal) Description copied from interface:StepSet theTraversalthat this step is contained within.- Specified by:
- setTraversalin interface- Step<S,E>
- Overrides:
- setTraversalin class- AbstractStep<S,E>
- Parameters:
- parentTraversal- the new traversal for this step
 
 - 
getLocalChildrenpublic List<Traversal.Admin<?,?>> getLocalChildren() Description copied from interface:TraversalParentGets a list of all "local" child traversals for this step. A "local" traversal is one which is evaluated independently for each incoming traverser to the parent step. This is typically used in cases where the child is used to process or augment each traverser individually. SeeLocalSteporByModulatingas examples.- Specified by:
- getLocalChildrenin interface- TraversalParent
 
 - 
getMergeTraversalpublic Traversal.Admin getMergeTraversal() - Specified by:
- getMergeTraversalin interface- MergeStepContract<S,E,Map>
 
 - 
getMergeMapWithGValuepublic Object getMergeMapWithGValue() Description copied from interface:MergeStepContractGets the merge map from this step. If the map was originally passed as aGValue, that is returned directly. If it was originally passed as aMaporConstantTraversal, then aMapis returned. Otherwise, the MergeMap is returned in Traversal form.- Specified by:
- getMergeMapWithGValuein interface- MergeStepContract<S,E,Map>
 
 - 
getOnCreateTraversalpublic Traversal.Admin getOnCreateTraversal() - Specified by:
- getOnCreateTraversalin interface- MergeStepContract<S,E,Map>
 
 - 
getOnCreateMapWithGValuepublic Object getOnCreateMapWithGValue() Description copied from interface:MergeStepContractGets the onCreate map from this step. If the map was originally passed as aGValue, that is returned directly. If it was originally passed as aMaporConstantTraversal, then aMapis returned. Otherwise, the onCreate is returned in Traversal form.- Specified by:
- getOnCreateMapWithGValuein interface- MergeStepContract<S,E,Map>
 
 - 
getOnMatchTraversalpublic Traversal.Admin getOnMatchTraversal() - Specified by:
- getOnMatchTraversalin interface- MergeStepContract<S,E,Map>
 
 - 
getOnMatchMapWithGValuepublic Object getOnMatchMapWithGValue() Description copied from interface:MergeStepContractGets the onMatch map from this step. If the map was originally passed as aGValue, that is returned directly. If it was originally passed as aMaporConstantTraversal, then aMapis returned. Otherwise, the onMatch is returned in Traversal form.- Specified by:
- getOnMatchMapWithGValuein interface- MergeStepContract<S,E,Map>
 
 - 
isStartpublic boolean isStart() - Specified by:
- isStartin interface- MergeStepContract<S,E,Map>
 
 - 
isFirstpublic boolean isFirst() - Specified by:
- isFirstin interface- MergeStepContract<S,E,Map>
 
 - 
isUsingPartitionStrategypublic boolean isUsingPartitionStrategy() - Specified by:
- isUsingPartitionStrategyin interface- MergeStepContract<S,E,Map>
 
 - 
setOnMatchpublic void setOnMatch(Traversal.Admin<?,Map<Object,Object>> onMatchTraversal) - Specified by:
- setOnMatchin interface- MergeStepContract<S,E,Map>
 
 - 
setOnCreatepublic void setOnCreate(Traversal.Admin<?,Map<Object,Object>> onCreateTraversal) - Specified by:
- setOnCreatein interface- MergeStepContract<S,E,Map>
 
 - 
setMergepublic void setMerge(Traversal.Admin<?,Map<Object,Object>> mergeTraversal) - Specified by:
- setMergein interface- MergeStepContract<S,E,Map>
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- AbstractStep<S,E>
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- AbstractStep<S,E>
 
 - 
isParameterizedpublic boolean isParameterized() - Specified by:
- isParameterizedin interface- GValueHolder<S,E>
 
 - 
updateVariablepublic void updateVariable(String name, Object value) - Specified by:
- updateVariablein interface- GValueHolder<S,E>
 
 - 
getGValuespublic Collection<GValue<?>> getGValues() - Specified by:
- getGValuesin interface- GValueHolder<S,E>
 
 - 
getMutatingCallbackRegistrypublic CallbackRegistry<Event> getMutatingCallbackRegistry() Description copied from interface:MutatingGets the callback registry for events that the step raises.- Specified by:
- getMutatingCallbackRegistryin interface- Mutating<S>
 
 - 
addPropertypublic void addProperty(Object key, Object value) This implementation should only be used as a mechanism for supportingPartitionStrategy.- Specified by:
- addPropertyin interface- PropertiesHolder
 
 - 
getPropertiespublic Map<Object,List<Object>> getProperties() - Specified by:
- getPropertiesin interface- PropertiesHolder
 
 - 
getPropertiesWithGValuespublic Map<Object,List<Object>> getPropertiesWithGValues() - Specified by:
- getPropertiesWithGValuesin interface- PropertiesHolder
 
 - 
removePropertypublic boolean removeProperty(Object k) - Specified by:
- removePropertyin interface- PropertiesHolder
 
 
- 
 
-