Class AbstractAddEdgeStepPlaceholder<S>
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep<S,E>
-
- org.apache.tinkerpop.gremlin.process.traversal.step.map.MapStep<S,E>
-
- org.apache.tinkerpop.gremlin.process.traversal.step.map.ScalarMapStep<S,E>
-
- org.apache.tinkerpop.gremlin.process.traversal.step.map.AbstractAddElementStepPlaceholder<S,Edge,Event.EdgeAddedEvent>
-
- org.apache.tinkerpop.gremlin.process.traversal.step.map.AbstractAddEdgeStepPlaceholder<S>
-
- All Implemented Interfaces:
Serializable,AutoCloseable,Cloneable,Iterator<Traverser.Admin<Edge>>,Step<S,Edge>,Configuring,FromToModulating,GValueHolder<S,Edge>,AddEdgeStepContract<S>,AddElementStepContract<S,Edge>,Mutating<Event.EdgeAddedEvent>,Parameterizing,PopContaining,PropertiesHolder,Scoping,TraversalParent,Writing<Event.EdgeAddedEvent>
- Direct Known Subclasses:
AddEdgeStartStepPlaceholder,AddEdgeStepPlaceholder
public abstract class AbstractAddEdgeStepPlaceholder<S> extends AbstractAddElementStepPlaceholder<S,Edge,Event.EdgeAddedEvent> implements AddEdgeStepContract<S>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.PopContaining
PopContaining.PopInstruction
-
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.Scoping
Scoping.KeyNotFoundException, Scoping.Variable
-
-
Field Summary
Fields Modifier and Type Field Description protected Traversal.Admin<?,?>fromprotected Traversal.Admin<?,?>to-
Fields inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.map.AbstractAddElementStepPlaceholder
elementId, label, properties, scopeKeys, withConfiguration
-
Fields inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild
-
Fields inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.map.AddEdgeStepContract
CONCRETE_STEPS
-
Fields inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.map.AddElementStepContract
CONCRETE_STEPS
-
-
Constructor Summary
Constructors Constructor Description AbstractAddEdgeStepPlaceholder(Traversal.Admin traversal, String label)AbstractAddEdgeStepPlaceholder(Traversal.Admin traversal, GValue<String> label)AbstractAddEdgeStepPlaceholder(Traversal.Admin traversal, Traversal.Admin<S,String> labelTraversal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFrom(Traversal.Admin<?,?> fromObject)voidaddTo(Traversal.Admin<?,?> toObject)AbstractAddEdgeStepPlaceholder<S>clone()Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.booleanequals(Object o)protected StringgetDefaultLabel()ObjectgetFrom()Gets the "from" vertex for the edge to be added.ObjectgetFromWithGValue()Gets the "from" vertex for the edge to be added.Collection<GValue<?>>getGValues()List<Traversal.Admin<?,?>>getLocalChildren()Gets a list of all "local" child traversals for this step.ObjectgetTo()Gets the "to" vertex for the edge to be added.ObjectgetToWithGValue()Gets the "from" vertex for the edge to be added.inthashCode()booleanisParameterized()protected booleansupportsMultiProperties()voidupdateVariable(String name, Object value)-
Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.map.AbstractAddElementStepPlaceholder
addProperty, addTraversal, configure, configureConcreteStep, getElementId, getElementIdWithGValue, getLabel, getLabelWithGValue, getMutatingCallbackRegistry, getParameters, getProperties, getPropertiesWithGValues, getRequirements, getScopeKeys, map, removeElementId, removeProperty, setElementId, setLabel, setTraversal
-
Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.map.ScalarMapStep
processNextStart
-
Methods 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, reset, setId, setNextStep, setPreviousStep, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.map.AddEdgeStepContract
getAdjacentVertex, getAdjacentVertex
-
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.map.AddElementStepContract
getElementId, getElementIdWithGValue, getLabel, getLabelWithGValue, getPopInstructions, removeElementId, setElementId, setLabel
-
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.Configuring
configure
-
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.FromToModulating
addFrom, addTo
-
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.GValueHolder
asConcreteStep, reduce
-
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
-
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.Mutating
getMutatingCallbackRegistry
-
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.Parameterizing
getParameters
-
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.PropertiesHolder
addProperty, getProperties, getPropertiesWithGValues, removeProperty
-
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.Scoping
getNullableScopeValue, getSafeScopeValue, getScopeKeys, getScopeValue
-
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Step
addLabel, addStart, addStarts, clearLabels, equals, getId, getLabels, getNextStep, getPreviousStep, getRequirements, getTraversal, hasStarts, removeLabel, reset, setId, setNextStep, setPreviousStep, setTraversal
-
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.TraversalParent
addGlobalChild, addLocalChild, asStep, close, getGlobalChildren, getSelfAndChildRequirements, integrateChild, removeGlobalChild, removeLocalChild, replaceLocalChild
-
-
-
-
Field Detail
-
from
protected Traversal.Admin<?,?> from
-
to
protected Traversal.Admin<?,?> to
-
-
Constructor Detail
-
AbstractAddEdgeStepPlaceholder
public AbstractAddEdgeStepPlaceholder(Traversal.Admin traversal, String label)
-
AbstractAddEdgeStepPlaceholder
public AbstractAddEdgeStepPlaceholder(Traversal.Admin traversal, GValue<String> label)
-
AbstractAddEdgeStepPlaceholder
public AbstractAddEdgeStepPlaceholder(Traversal.Admin traversal, Traversal.Admin<S,String> labelTraversal)
-
-
Method Detail
-
getDefaultLabel
protected String getDefaultLabel()
- Specified by:
getDefaultLabelin classAbstractAddElementStepPlaceholder<S,Edge,Event.EdgeAddedEvent>
-
addTo
public void addTo(Traversal.Admin<?,?> toObject)
- Specified by:
addToin interfaceFromToModulating
-
addFrom
public void addFrom(Traversal.Admin<?,?> fromObject)
- Specified by:
addFromin interfaceFromToModulating
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classAbstractAddElementStepPlaceholder<S,Edge,Event.EdgeAddedEvent>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractAddElementStepPlaceholder<S,Edge,Event.EdgeAddedEvent>
-
isParameterized
public boolean isParameterized()
- Specified by:
isParameterizedin interfaceGValueHolder<S,Edge>- Overrides:
isParameterizedin classAbstractAddElementStepPlaceholder<S,Edge,Event.EdgeAddedEvent>
-
getLocalChildren
public 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 interfaceTraversalParent- Overrides:
getLocalChildrenin classAbstractAddElementStepPlaceholder<S,Edge,Event.EdgeAddedEvent>
-
supportsMultiProperties
protected boolean supportsMultiProperties()
- Specified by:
supportsMultiPropertiesin classAbstractAddElementStepPlaceholder<S,Edge,Event.EdgeAddedEvent>
-
getFrom
public Object getFrom()
Description copied from interface:AddEdgeStepContractGets the "from" vertex for the edge to be added. If the "from" vertex was added as aVertex, ID,GValue, orConstantTraversal, it is returned as aReferenceVertex. Otherwise, it is returned inTraversalform.- Specified by:
getFromin interfaceAddEdgeStepContract<S>
-
getFromWithGValue
public Object getFromWithGValue()
Description copied from interface:AddEdgeStepContractGets the "from" vertex for the edge to be added. If the "from" vertex was added as aVertex, ID, orConstantTraversal, it is returned as aReferenceVertex. If it was added as aGValuecontaining aVertexor ID, theGValueis returned. Otherwise, it is returned inTraversalform.- Specified by:
getFromWithGValuein interfaceAddEdgeStepContract<S>
-
getTo
public Object getTo()
Description copied from interface:AddEdgeStepContractGets the "to" vertex for the edge to be added. If the "to" vertex was added as aVertex, ID,GValue, orConstantTraversal, it is returned as aReferenceVertex. Otherwise, it is returned inTraversalform.- Specified by:
getToin interfaceAddEdgeStepContract<S>
-
getToWithGValue
public Object getToWithGValue()
Description copied from interface:AddEdgeStepContractGets the "from" vertex for the edge to be added. If the "from" vertex was added as aVertex, ID, orConstantTraversal, it is returned as aReferenceVertex. If it was added as aGValuecontaining aVertexor ID, theGValueis returned. Otherwise, it is returned inTraversalform.- Specified by:
getToWithGValuein interfaceAddEdgeStepContract<S>
-
updateVariable
public void updateVariable(String name, Object value)
- Specified by:
updateVariablein interfaceGValueHolder<S,Edge>- Overrides:
updateVariablein classAbstractAddElementStepPlaceholder<S,Edge,Event.EdgeAddedEvent>
-
getGValues
public Collection<GValue<?>> getGValues()
- Specified by:
getGValuesin interfaceGValueHolder<S,Edge>- Overrides:
getGValuesin classAbstractAddElementStepPlaceholder<S,Edge,Event.EdgeAddedEvent>
-
clone
public AbstractAddEdgeStepPlaceholder<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.- Specified by:
clonein interfaceStep<S,Edge>- Overrides:
clonein classAbstractAddElementStepPlaceholder<S,Edge,Event.EdgeAddedEvent>- Returns:
- The cloned step
-
-