public final class CallStep<S,E> extends AbstractStep<S,E> implements TraversalParent, AutoCloseable, Configuring
ServiceRegistry and Service APIs. This step
can be used to start a traversal or it can be used mid-traversal with one at a time or barrier execution.id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild| Constructor and Description |
|---|
CallStep(Traversal.Admin traversal,
boolean isStart) |
CallStep(Traversal.Admin traversal,
boolean isStart,
String service) |
CallStep(Traversal.Admin traversal,
boolean isStart,
String service,
Map staticParams) |
CallStep(Traversal.Admin traversal,
boolean isStart,
String service,
Map staticParams,
Traversal.Admin<S,Map> mapTraversal) |
| Modifier and Type | Method and Description |
|---|---|
CallStep<S,E> |
clone()
Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.
|
void |
close() |
protected void |
closeIterator() |
void |
configure(Object... keyValues)
Accept a configuration to the
Step. |
protected CloseableIterator |
flatMap(Traverser.Admin<S> traverser) |
protected CloseableIterator |
flatMap(TraverserSet<S> traverserSet) |
<S,E> List<Traversal.Admin<S,E>> |
getLocalChildren() |
protected Map |
getMergedParams() |
protected Map |
getMergedParams(Traverser.Admin<S> traverser) |
protected Map |
getMergedParams(TraverserSet<S> traverserSet) |
Parameters |
getParameters()
Gets the parameters on the step.
|
Set<TraverserRequirement> |
getRequirements()
Provide the necessary
TraverserRequirement that must be met by the traverser in order for the step to
function properly. |
protected ServiceRegistry |
getServiceRegistry() |
int |
hashCode() |
protected Traverser.Admin<E> |
processNextStart() |
void |
reset()
Reset the state of the step such that it has no incoming starts.
|
protected Service<S,E> |
service() |
void |
setTraversal(Traversal.Admin<?,?> parentTraversal)
Set the
Traversal that this step is contained within. |
protected CloseableIterator |
start() |
String |
toString() |
addLabel, addStart, addStarts, equals, getId, getLabels, getNextStep, getPreviousStep, getStarts, getTraversal, hasNext, hasStarts, isTraverserStepIdAndLabelsSetByChild, next, prepareTraversalForNextStep, removeLabel, setId, setNextStep, setPreviousStepfinalize, getClass, notify, notifyAll, wait, wait, waitaddGlobalChild, addLocalChild, asStep, getGlobalChildren, getSelfAndChildRequirements, integrateChild, removeGlobalChild, removeLocalChild, replaceLocalChildforEachRemaining, removepublic CallStep(Traversal.Admin traversal, boolean isStart)
public CallStep(Traversal.Admin traversal, boolean isStart, String service)
public CallStep(Traversal.Admin traversal, boolean isStart, String service, Map staticParams)
public CallStep(Traversal.Admin traversal, boolean isStart, String service, Map staticParams, Traversal.Admin<S,Map> mapTraversal)
protected Traverser.Admin<E> processNextStart()
processNextStart in class AbstractStep<S,E>public void close()
close in interface AutoCloseableclose in interface TraversalParentprotected void closeIterator()
protected Map getMergedParams()
protected Map getMergedParams(Traverser.Admin<S> traverser)
protected Map getMergedParams(TraverserSet<S> traverserSet)
protected CloseableIterator start()
protected CloseableIterator flatMap(Traverser.Admin<S> traverser)
protected CloseableIterator flatMap(TraverserSet<S> traverserSet)
protected ServiceRegistry getServiceRegistry()
public void reset()
Steppublic <S,E> List<Traversal.Admin<S,E>> getLocalChildren()
getLocalChildren in interface TraversalParentpublic void setTraversal(Traversal.Admin<?,?> parentTraversal)
StepTraversal that this step is contained within.setTraversal in interface Step<S,E>setTraversal in class AbstractStep<S,E>parentTraversal - the new traversal for this steppublic 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>public String toString()
toString in class AbstractStep<S,E>public int hashCode()
hashCode in class AbstractStep<S,E>public CallStep<S,E> clone()
StepStep.reset() is called. Moreover, the previous and next steps should be set to EmptyStep.public void configure(Object... keyValues)
ConfiguringStep. Note that this interface extends Parameterizing and so
there is an expectation that the Step implementation will have a Parameters instance that will
house any values passed to this method. Storing these configurations in Parameters is 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).configure in interface Configuringpublic Parameters getParameters()
ParameterizinggetParameters in interface ParameterizingCopyright © 2013–2023 Apache Software Foundation. All rights reserved.