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> Configuring,GraphComputing,GValueHolder<S,,E> GraphStepContract<S,,E> Parameterizing
public class GraphStepPlaceholder<S,E extends Element>
extends AbstractStep<S,E>
implements GValueHolder<S,E>, GraphStepContract<S,E>
- See Also:
-
Field Summary
FieldsFields 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.GraphStepContract
CONCRETE_STEPS -
Constructor Summary
ConstructorsConstructorDescriptionGraphStepPlaceholder(Traversal.Admin traversal, Class<E> returnClass, boolean isStart, GValue<?>... ids) -
Method Summary
Modifier and TypeMethodDescriptionvoidclearIds()clone()Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.voidclose()voidAccept a configuration to theStep.booleanCollection<GValue<?>>Object[]getIds()GValue<?>[]Gets the parameters on the step.inthashCode()booleanbooleanvoidThe step will be executing on aGraphComputer.protected Traverser.Admin<E>booleanbooleantoString()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, setTraversalMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.GraphComputing
atMasterMethods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.GValueHolder
reduceMethods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, removeMethods 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
-
Field Details
-
withConfiguration
-
returnClass
-
ids
-
-
Constructor Details
-
GraphStepPlaceholder
public GraphStepPlaceholder(Traversal.Admin traversal, Class<E> returnClass, boolean isStart, GValue<?>... ids)
-
-
Method Details
-
toString
- Overrides:
toStringin classAbstractStep<S,E extends Element>
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
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
- Specified by:
getIdsin interfaceGraphStepContract<S,E extends Element>
-
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
- Specified by:
processNextStartin classAbstractStep<S,E extends Element>
-
equals
- Overrides:
equalsin classAbstractStep<S,E extends Element>
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractStep<S,E extends Element>
-
asConcreteStep
- Specified by:
asConcreteStepin interfaceGValueHolder<S,E extends Element>
-
isParameterized
public boolean isParameterized()- Specified by:
isParameterizedin interfaceGValueHolder<S,E extends Element>
-
updateVariable
- Specified by:
updateVariablein interfaceGValueHolder<S,E extends Element>
-
getGValues
- Specified by:
getGValuesin interfaceGValueHolder<S,E extends Element>
-
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. -
configure
Description copied from interface:ConfiguringAccept a configuration to theStep. Note that this interface extendsParameterizingand so there is an expectation that theStepimplementation will have aParametersinstance that will house any values passed to this method. Storing these configurations inParametersis not a requirement however, IF the configuration is an expected option for the step and can be stored on a member field that can be accessed on the step by more direct means (i.e. like a getter method).- Specified by:
configurein interfaceConfiguring
-
getParameters
Description copied from interface:ParameterizingGets the parameters on the step.- Specified by:
getParametersin interfaceParameterizing
-