public final class EmptyStep<S,E> extends java.lang.Object implements Step<S,E>, TraversalHolder<S,E>
TraversalHolder.Child| Modifier and Type | Method and Description |
|---|---|
void |
addStart(Traverser<S> start)
Add a single
Traverser to the step. |
void |
addStarts(java.util.Iterator<Traverser<S>> starts)
Add a iterator of
Traverser 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(java.lang.Object object) |
java.lang.String |
getId()
Get the unique id of this step.
|
java.util.Optional<java.lang.String> |
getLabel()
Get the label 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.
|
<A,B> Traversal<A,B> |
getTraversal()
Get the
Traversal that this step is contained within. |
java.util.List<Traversal<S,E>> |
getTraversals() |
int |
hashCode() |
boolean |
hasNext() |
static <S,E> Step<S,E> |
instance() |
Traverser<E> |
next() |
void |
reset()
Reset the state of the step such that it has no incoming starts.
|
void |
setId(java.lang.String id)
Get the unique id of the step.
|
void |
setLabel(java.lang.String label)
Set the label of this 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<?,?> traversal)
Set the
Traversal that this step is contained within. |
finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetRequirementsasStep, executeTraversalOperations, getChildStrategies, getTraversalRequirements, resetTraversalspublic static <S,E> Step<S,E> instance()
public void addStarts(java.util.Iterator<Traverser<S>> starts)
StepTraverser objects of type S to the step.public void addStart(Traverser<S> start)
StepTraverser 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<A,B> getTraversal()
StepTraversal 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<?,?> 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() throws java.lang.CloneNotSupportedException
StepEmptyStep.public java.util.Optional<java.lang.String> getLabel()
StepOptional.empty() is returned.public void setLabel(java.lang.String label)
Steppublic void setId(java.lang.String id)
Steppublic java.lang.String getId()
Steppublic boolean hasNext()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic java.util.List<Traversal<S,E>> getTraversals()
getTraversals in interface TraversalHolder<S,E>Copyright © 2013-2015 TinkerPop. All Rights Reserved.