Class GraphStep<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.GraphStep<S,E>
 
 
- 
- All Implemented Interfaces:
- Serializable,- AutoCloseable,- Cloneable,- Iterator<Traverser.Admin<E>>,- Step<S,E>,- Configuring,- GraphComputing,- Parameterizing
 - Direct Known Subclasses:
- TinkerGraphStep
 
 public class GraphStep<S,E extends Element> extends AbstractStep<S,E> implements GraphComputing, AutoCloseable, Configuring - Author:
- Marko A. Rodriguez (http://markorodriguez.com), Pieter Martin
- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected booleandoneprotected Object[]idsprotected booleanisStartprotected Supplier<Iterator<E>>iteratorSupplierprotected Parametersparametersprotected Class<E>returnClass- 
Fields inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStepid, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild
 
- 
 - 
Constructor SummaryConstructors Constructor Description GraphStep(Traversal.Admin traversal, Class<E> returnClass, boolean isStart, Object... ids)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddIds(Object... newIds)voidclearIds()voidclose()Attempts to close an underlying iterator if it is of typeCloseableIterator.voidconfigure(Object... keyValues)Accept a configuration to theStep.voidconvertElementsToIds()Object[]getIds()ParametersgetParameters()Gets the parameters on the step.Class<E>getReturnClass()inthashCode()booleanisStartStep()static booleanisStartStep(Step<?,?> step)voidonGraphComputer()The step will be executing on aGraphComputer.static booleanprocessHasContainerIds(GraphStep<?,?> graphStep, HasContainer hasContainer)Helper method for providers that want to "fold in"HasContainer's based on id checking into the ids of theGraphStep.protected Traverser.Admin<E>processNextStart()voidreset()Reset the state of the step such that it has no incoming starts.booleanreturnsEdge()booleanreturnsVertex()voidsetIteratorSupplier(Supplier<Iterator<E>> iteratorSupplier)StringtoString()- 
Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStepaddLabel, addStart, addStarts, clearLabels, clone, equals, getId, getLabels, getNextStep, getPreviousStep, getStarts, getTraversal, hasNext, hasStarts, isTraverserStepIdAndLabelsSetByChild, next, prepareTraversalForNextStep, removeLabel, setId, setNextStep, setPreviousStep, setTraversal
 - 
Methods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.GraphComputingatMaster
 - 
Methods inherited from interface java.util.IteratorforEachRemaining, remove
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Stepequals, getRequirements
 
- 
 
- 
- 
- 
Field Detail- 
parametersprotected Parameters parameters 
 - 
idsprotected Object[] ids 
 - 
isStartprotected boolean isStart 
 - 
doneprotected boolean done 
 
- 
 - 
Constructor Detail- 
GraphSteppublic GraphStep(Traversal.Admin traversal, Class<E> returnClass, boolean isStart, Object... ids) 
 
- 
 - 
Method Detail- 
getParameterspublic Parameters getParameters() Description copied from interface:ParameterizingGets the parameters on the step.- Specified by:
- getParametersin interface- Parameterizing
 
 - 
configurepublic void configure(Object... keyValues) 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 interface- Configuring
 
 - 
isStartSteppublic boolean isStartStep() 
 - 
isStartSteppublic static boolean isStartStep(Step<?,?> step) 
 - 
returnsVertexpublic boolean returnsVertex() 
 - 
returnsEdgepublic boolean returnsEdge() 
 - 
getIdspublic Object[] getIds() 
 - 
addIdspublic void addIds(Object... newIds) 
 - 
clearIdspublic void clearIds() 
 - 
onGraphComputerpublic void onGraphComputer() Description copied from interface:GraphComputingThe step will be executing on aGraphComputer.- Specified by:
- onGraphComputerin interface- GraphComputing
 
 - 
convertElementsToIdspublic void convertElementsToIds() 
 - 
processNextStartprotected Traverser.Admin<E> processNextStart() - Specified by:
- processNextStartin class- AbstractStep<S,E extends Element>
 
 - 
resetpublic void reset() Description copied from interface:StepReset the state of the step such that it has no incoming starts. Internal states are to be reset, but any sideEffect data structures are not to be recreated.
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- AbstractStep<S,E extends Element>
 
 - 
closepublic void close() Attempts to close an underlying iterator if it is of typeCloseableIterator. Graph providers may choose to return this interface containing their vertices and edges if there are expensive resources that might need to be released at some point.- Specified by:
- closein interface- AutoCloseable
 
 - 
processHasContainerIdspublic static boolean processHasContainerIds(GraphStep<?,?> graphStep, HasContainer hasContainer) Helper method for providers that want to "fold in"HasContainer's based on id checking into the ids of theGraphStep.- Parameters:
- graphStep- the GraphStep to potentially- addIds(Object...).
- hasContainer- The- HasContainerto check for id validation.
- Returns:
- true if the HasContainerupdated ids and thus, was processed.
 
 
- 
 
-