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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.PopContaining
PopContaining.PopInstruction -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected Traversal.Admin<?,Map<Object, Object>> protected Traversal.Admin<?,Map<Object, Object>> protected Traversal.Admin<?,Map<Object, Object>> Fields inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChildFields inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.map.MergeStepContract
CONCRETE_STEPS -
Constructor Summary
ConstructorsConstructorDescriptionAbstractMergeElementStepPlaceholder(Traversal.Admin traversal, Traversal.Admin<?, Map<Object, Object>> mergeTraversal, boolean isStart) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProperty(Object key, Object value) This implementation should only be used as a mechanism for supportingPartitionStrategy.clone()Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.booleanflatMap(Traverser.Admin<S> traverser) Collection<GValue<?>>List<Traversal.Admin<?,?>> Gets a list of all "local" child traversals for this step.Gets the merge map from this step.Gets the callback registry for events that the step raises.Gets the onCreate map from this step.Gets the onMatch map from this step.Provide the necessaryTraverserRequirementthat must be met by the traverser in order for the step to function properly.inthashCode()booleanisFirst()booleanbooleanisStart()booleanbooleanvoidsetMerge(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.FlatMapStep
closeIterator, processNextStart, resetMethods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep
addLabel, addStart, addStarts, clearLabels, getId, getLabels, getNextStep, getPreviousStep, getStarts, getTraversal, hasNext, hasStarts, isTraverserStepIdAndLabelsSetByChild, next, prepareTraversalForNextStep, removeLabel, setId, setNextStep, setPreviousStep, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.GValueHolder
asConcreteStep, reduceMethods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, removeMethods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.map.MergeStepContract
resetMethods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Step
addLabel, addStart, addStarts, clearLabels, equals, getId, getLabels, getNextStep, getPreviousStep, getTraversal, hasStarts, removeLabel, reset, setId, setNextStep, setPreviousStepMethods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.TraversalOptionParent
addChildOptionMethods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.TraversalParent
addGlobalChild, addLocalChild, asStep, close, getGlobalChildren, getPopInstructions, getSelfAndChildRequirements, integrateChild, removeGlobalChild, removeLocalChild, replaceLocalChild
-
Field Details
-
isStart
protected final boolean isStart -
properties
-
mergeTraversal
-
onCreateTraversal
-
onMatchTraversal
-
-
Constructor Details
-
AbstractMergeElementStepPlaceholder
public AbstractMergeElementStepPlaceholder(Traversal.Admin traversal, Traversal.Admin<?, Map<Object, Object>> mergeTraversal, boolean isStart)
-
-
Method Details
-
flatMap
- Specified by:
flatMapin classFlatMapStep<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. -
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 interfaceMergeStepContract<S,E, Map> - Specified by:
getRequirementsin interfaceStep<S,E> - Returns:
- the set of requirements
-
setTraversal
Description copied from interface:StepSet theTraversalthat this step is contained within.- Specified by:
setTraversalin interfaceStep<S,E> - Overrides:
setTraversalin classAbstractStep<S,E> - Parameters:
parentTraversal- the new traversal for this step
-
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 interfaceTraversalParent
-
getMergeTraversal
- Specified by:
getMergeTraversalin interfaceMergeStepContract<S,E, Map>
-
getMergeMapWithGValue
Description copied from interface:MergeStepContractGets the merge map from this step. If the map was originally passed as aGValue<Map>, that is returned directly. If it was originally passed as aMaporConstantTraversal<Map>, then aMapis returned. Otherwise, the MergeMap is returned in Traversal form.- Specified by:
getMergeMapWithGValuein interfaceMergeStepContract<S,E, Map>
-
getOnCreateTraversal
- Specified by:
getOnCreateTraversalin interfaceMergeStepContract<S,E, Map>
-
getOnCreateMapWithGValue
Description copied from interface:MergeStepContractGets the onCreate map from this step. If the map was originally passed as aGValue<Map>, that is returned directly. If it was originally passed as aMaporConstantTraversal<Map>, then aMapis returned. Otherwise, the onCreate is returned in Traversal form.- Specified by:
getOnCreateMapWithGValuein interfaceMergeStepContract<S,E, Map>
-
getOnMatchTraversal
- Specified by:
getOnMatchTraversalin interfaceMergeStepContract<S,E, Map>
-
getOnMatchMapWithGValue
Description copied from interface:MergeStepContractGets the onMatch map from this step. If the map was originally passed as aGValue<Map>, that is returned directly. If it was originally passed as aMaporConstantTraversal<Map>, then aMapis returned. Otherwise, the onMatch is returned in Traversal form.- Specified by:
getOnMatchMapWithGValuein interfaceMergeStepContract<S,E, Map>
-
isStart
public boolean isStart()- Specified by:
isStartin interfaceMergeStepContract<S,E, Map>
-
isFirst
public boolean isFirst()- Specified by:
isFirstin interfaceMergeStepContract<S,E, Map>
-
isUsingPartitionStrategy
public boolean isUsingPartitionStrategy()- Specified by:
isUsingPartitionStrategyin interfaceMergeStepContract<S,E, Map>
-
setOnMatch
- Specified by:
setOnMatchin interfaceMergeStepContract<S,E, Map>
-
setOnCreate
- Specified by:
setOnCreatein interfaceMergeStepContract<S,E, Map>
-
setMerge
- Specified by:
setMergein interfaceMergeStepContract<S,E, Map>
-
equals
- Overrides:
equalsin classAbstractStep<S,E>
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractStep<S,E>
-
isParameterized
public boolean isParameterized()- Specified by:
isParameterizedin interfaceGValueHolder<S,E>
-
updateVariable
- Specified by:
updateVariablein interfaceGValueHolder<S,E>
-
getGValues
- Specified by:
getGValuesin interfaceGValueHolder<S,E>
-
getMutatingCallbackRegistry
Description copied from interface:MutatingGets the callback registry for events that the step raises.- Specified by:
getMutatingCallbackRegistryin interfaceMutating<S>
-
addProperty
This implementation should only be used as a mechanism for supportingPartitionStrategy.- Specified by:
addPropertyin interfacePropertiesHolder
-
getProperties
- Specified by:
getPropertiesin interfacePropertiesHolder
-
getPropertiesWithGValues
- Specified by:
getPropertiesWithGValuesin interfacePropertiesHolder
-
removeProperty
- Specified by:
removePropertyin interfacePropertiesHolder
-