Class GraphStepPlaceholder<S,E extends Element>
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep<S,E>
-
- org.apache.tinkerpop.gremlin.process.traversal.step.map.GraphStepPlaceholder<S,E>
-
- All Implemented Interfaces:
Serializable,AutoCloseable,Cloneable,Iterator<Traverser.Admin<E>>,Step<S,E>,GraphComputing,GValueHolder<S,E>,GraphStepContract<S,E>
public class GraphStepPlaceholder<S,E extends Element> extends AbstractStep<S,E> implements GValueHolder<S,E>, GraphStepContract<S,E>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected GValue<?>[]idsprotected Class<E>returnClass-
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.GraphStepContract
CONCRETE_STEPS
-
-
Constructor Summary
Constructors Constructor Description GraphStepPlaceholder(Traversal.Admin traversal, Class<E> returnClass, boolean isStart, GValue<?>... ids)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GraphStep<S,E>asConcreteStep()voidclearIds()GraphStepPlaceholder<S,E>clone()Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.voidclose()booleanequals(Object o)Collection<GValue<?>>getGValues()Object[]getIds()GValue<?>[]getIdsAsGValues()Class<E>getReturnClass()inthashCode()booleanisParameterized()booleanisStartStep()voidonGraphComputer()The step will be executing on aGraphComputer.protected Traverser.Admin<E>processNextStart()booleanreturnsEdge()booleanreturnsVertex()StringtoString()voidupdateVariable(String name, Object value)-
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, setTraversal
-
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.GraphComputing
atMaster
-
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.GValueHolder
reduce
-
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
-
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
-
-
-
-
Constructor Detail
-
GraphStepPlaceholder
public GraphStepPlaceholder(Traversal.Admin traversal, Class<E> returnClass, boolean isStart, GValue<?>... ids)
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
getReturnClass
public Class<E> getReturnClass()
- Specified by:
getReturnClassin interfaceGraphStepContract<S,E extends Element>
-
isStartStep
public boolean isStartStep()
- Specified by:
isStartStepin interfaceGraphStepContract<S,E extends Element>
-
returnsVertex
public boolean returnsVertex()
- Specified by:
returnsVertexin interfaceGraphStepContract<S,E extends Element>
-
returnsEdge
public boolean returnsEdge()
- Specified by:
returnsEdgein interfaceGraphStepContract<S,E extends Element>
-
getIds
public Object[] getIds()
- Specified by:
getIdsin interfaceGraphStepContract<S,E extends Element>
-
getIdsAsGValues
public GValue<?>[] getIdsAsGValues()
- Specified by:
getIdsAsGValuesin interfaceGraphStepContract<S,E extends Element>
-
clearIds
public void clearIds()
- Specified by:
clearIdsin interfaceGraphStepContract<S,E extends Element>
-
onGraphComputer
public void onGraphComputer()
Description copied from interface:GraphComputingThe step will be executing on aGraphComputer.- Specified by:
onGraphComputerin interfaceGraphComputing
-
processNextStart
protected Traverser.Admin<E> processNextStart()
- Specified by:
processNextStartin classAbstractStep<S,E extends Element>
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classAbstractStep<S,E extends Element>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractStep<S,E extends Element>
-
asConcreteStep
public GraphStep<S,E> asConcreteStep()
- Specified by:
asConcreteStepin interfaceGValueHolder<S,E extends Element>
-
isParameterized
public boolean isParameterized()
- Specified by:
isParameterizedin interfaceGValueHolder<S,E extends Element>
-
updateVariable
public void updateVariable(String name, Object value)
- Specified by:
updateVariablein interfaceGValueHolder<S,E extends Element>
-
getGValues
public Collection<GValue<?>> getGValues()
- Specified by:
getGValuesin interfaceGValueHolder<S,E extends Element>
-
clone
public GraphStepPlaceholder<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.
-
-