public final class EmptyStep<S,E> extends Object implements Step<S,E>, TraversalParent
| Modifier and Type | Method and Description | 
|---|---|
void | 
addLabel(String label)
Add a label to this step. 
 | 
void | 
addStart(Traverser.Admin<S> start)
Add a single  
Traverser.Admin to the step. | 
void | 
addStarts(Iterator<Traverser.Admin<S>> starts)
Add a iterator of  
Traverser.Admin objects of type S to the step. | 
EmptyStep<S,E> | 
clone()
Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication. 
 | 
boolean | 
equals(Object object)  | 
String | 
getId()
Get the unique id of this step. 
 | 
Set<String> | 
getLabels()
Get the labels of this step. 
 | 
Step<E,?> | 
getNextStep()
Get the next step to the current step. 
 | 
Step<?,S> | 
getPreviousStep()
Get the step prior to the current step. 
 | 
Set<TraverserRequirement> | 
getRequirements()
Provide the necessary  
TraverserRequirement that must be met by the traverser in order for the step to function properly. | 
<A,B> Traversal.Admin<A,B> | 
getTraversal()
Get the  
Traversal.Admin that this step is contained within. | 
int | 
hashCode()  | 
boolean | 
hasNext()  | 
static <S,E> EmptyStep<S,E> | 
instance()  | 
Traverser.Admin<E> | 
next()  | 
void | 
removeLabel(String label)
Remove a label from this step. 
 | 
void | 
reset()
Reset the state of the step such that it has no incoming starts. 
 | 
void | 
setId(String id)
Get the unique id of the step. 
 | 
void | 
setNextStep(Step<E,?> step)
Set the step that is next to the current step. 
 | 
void | 
setPreviousStep(Step<?,S> step)
Set the step that is previous to the current step. 
 | 
void | 
setTraversal(Traversal.Admin<?,?> traversal)
Set the  
Traversal that this step is contained within. | 
finalize, getClass, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removeaddGlobalChild, addLocalChild, asStep, close, getGlobalChildren, getLocalChildren, getSelfAndChildRequirements, integrateChild, removeGlobalChild, removeLocalChildpublic static <S,E> EmptyStep<S,E> instance()
public void addStarts(Iterator<Traverser.Admin<S>> starts)
StepTraverser.Admin objects of type S to the step.public void addStart(Traverser.Admin<S> start)
StepTraverser.Admin to the step.public void setPreviousStep(Step<?,S> step)
StepsetPreviousStep in interface Step<S,E>step - the previous step of this steppublic void reset()
Steppublic Step<?,S> getPreviousStep()
StepgetPreviousStep in interface Step<S,E>public void setNextStep(Step<E,?> step)
StepsetNextStep in interface Step<S,E>step - the next step of this steppublic Step<E,?> getNextStep()
StepgetNextStep in interface Step<S,E>public <A,B> Traversal.Admin<A,B> getTraversal()
StepTraversal.Admin that this step is contained within.getTraversal in interface Step<S,E>A - The incoming object type of the traversalB - The outgoing object type of the traversalpublic void setTraversal(Traversal.Admin<?,?> traversal)
StepTraversal that this step is contained within.setTraversal in interface Step<S,E>traversal - the new traversal for this steppublic EmptyStep<S,E> clone()
StepEmptyStep.public Set<String> getLabels()
StepStep.addLabel(java.lang.String).public void addLabel(String label)
Steppublic void removeLabel(String label)
StepremoveLabel in interface Step<S,E>label - the label to remove from this steppublic void setId(String id)
Steppublic boolean hasNext()
hasNext in interface Iterator<Traverser.Admin<E>>public Traverser.Admin<E> next()
next in interface Iterator<Traverser.Admin<E>>public Set<TraverserRequirement> getRequirements()
StepTraverserRequirement that must be met by the traverser in order for the step to function properly.
 The provided default implements returns an empty set.getRequirements in interface Step<S,E>Copyright © 2013–2019 Apache Software Foundation. All rights reserved.