Interface AddElementStepContract<S,E>
- All Superinterfaces:
AutoCloseable,Cloneable,Configuring,Iterator<Traverser.Admin<E>>,Parameterizing,PopContaining,PropertiesHolder,Scoping,Serializable,Step<S,,E> TraversalParent
- All Known Subinterfaces:
AddEdgeStepContract<S>,AddVertexStepContract<S>
- All Known Implementing Classes:
AbstractAddEdgeStepPlaceholder,AbstractAddElementStepPlaceholder,AbstractAddVertexStepPlaceholder,AddEdgeStartStep,AddEdgeStartStepPlaceholder,AddEdgeStep,AddEdgeStepPlaceholder,AddVertexStartStep,AddVertexStartStepPlaceholder,AddVertexStep,AddVertexStepPlaceholder
public interface AddElementStepContract<S,E>
extends Step<S,E>, PropertiesHolder, TraversalParent, Scoping, Configuring
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.PopContaining
PopContaining.PopInstructionNested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.Scoping
Scoping.KeyNotFoundException, Scoping.Variable -
Field Summary
FieldsModifier and TypeFieldDescriptionConcrete implementations of this contract that can be referenced as TinkerPop implementations. -
Method Summary
Modifier and TypeMethodDescriptiondefault ObjectgetLabel()Gets the label(s) assigned to the element produced by this step.default Objectdefault HashSet<PopContaining.PopInstruction>Used to get PopInstruction of a Step that implements Scoping.booleanvoidsetElementId(Object elementId) voidSets the label(s) to assign to the element produced by this step.Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.Configuring
configureMethods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, removeMethods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.Parameterizing
getParametersMethods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.PropertiesHolder
addProperty, getProperties, getPropertiesWithGValues, removePropertyMethods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.Scoping
getNullableScopeValue, getSafeScopeValue, getScopeKeys, getScopeValueMethods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Step
addLabel, addStart, addStarts, clearLabels, clone, equals, getId, getLabels, getNextStep, getPreviousStep, getRequirements, getTraversal, hasStarts, removeLabel, reset, setId, setNextStep, setPreviousStep, setTraversalMethods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.TraversalParent
addGlobalChild, addLocalChild, asStep, close, getGlobalChildren, getLocalChildren, getSelfAndChildRequirements, integrateChild, removeGlobalChild, removeLocalChild, replaceLocalChild
-
Field Details
-
CONCRETE_STEPS
Concrete implementations of this contract that can be referenced as TinkerPop implementations.
-
-
Method Details
-
getLabel
Object getLabel()Gets the label(s) assigned to the element produced by this step. Returns a single value, or aSetwhen multiple labels were specified (e.g.addV("a", "b")). Each individual label value will either be aStringorTraversaldepending on how it was initially set. Callers should not assume the type isStringand should check withinstanceofbefore casting.- Returns:
- a
String,Traversal, or aSetcontaining either
-
getLabelWithGValue
-
setLabel
Sets the label(s) to assign to the element produced by this step. Accepts a singleString,GValue<String>, orTraversalresolving to aString, or aCollection<Object>of two or more such values. Should behave identically to specifying the same value at construction time. Implementations may restrict calling this method more than once at their own discretion.- Parameters:
label- aString,GValue<String>,Traversal, orCollection<Object>
-
getElementId
Object getElementId() -
getElementIdWithGValue
-
setElementId
-
removeElementId
boolean removeElementId() -
getPopInstructions
Description copied from interface:ScopingUsed to get PopInstruction of a Step that implements Scoping. PopInstruction includes the labels it needs, and the pop type for each label.- Specified by:
getPopInstructionsin interfacePopContaining- Specified by:
getPopInstructionsin interfaceScoping- Specified by:
getPopInstructionsin interfaceTraversalParent- Returns:
- A Set of
PopContaining.PopInstructionvalues which contain the label and Pop value
-