Class CallStep<S,E>
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep<S,E>
- 
- org.apache.tinkerpop.gremlin.process.traversal.step.map.CallStep<S,E>
 
 
- 
- All Implemented Interfaces:
- Serializable,- AutoCloseable,- Cloneable,- Iterator<Traverser.Admin<E>>,- Step<S,E>,- Configuring,- Parameterizing,- TraversalParent
 
 public final class CallStep<S,E> extends AbstractStep<S,E> implements TraversalParent, AutoCloseable, Configuring Reference implementation for service calls via theServiceRegistryandServiceAPIs. This step can be used to start a traversal or it can be used mid-traversal with one at a time or barrier execution.- Author:
- Mike Personick (http://github.com/mikepersonick)
- See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStepid, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild
 
- 
 - 
Constructor SummaryConstructors Constructor 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)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description CallStep<S,E>clone()Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.voidclose()protected voidcloseIterator()voidconfigure(Object... keyValues)Accept a configuration to theStep.protected CloseableIteratorflatMap(Traverser.Admin<S> traverser)protected CloseableIteratorflatMap(TraverserSet<S> traverserSet)<S,E>
 List<Traversal.Admin<S,E>>getLocalChildren()protected MapgetMergedParams()protected MapgetMergedParams(Traverser.Admin<S> traverser)protected MapgetMergedParams(TraverserSet<S> traverserSet)ParametersgetParameters()Gets the parameters on the step.Set<TraverserRequirement>getRequirements()Provide the necessaryTraverserRequirementthat must be met by the traverser in order for the step to function properly.protected ServiceRegistrygetServiceRegistry()inthashCode()protected Traverser.Admin<E>processNextStart()voidreset()Reset the state of the step such that it has no incoming starts.protected Service<S,E>service()voidsetTraversal(Traversal.Admin<?,?> parentTraversal)Set theTraversalthat this step is contained within.protected CloseableIteratorstart()StringtoString()- 
Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStepaddLabel, addStart, addStarts, clearLabels, equals, getId, getLabels, getNextStep, getPreviousStep, getStarts, getTraversal, hasNext, hasStarts, isTraverserStepIdAndLabelsSetByChild, next, prepareTraversalForNextStep, removeLabel, setId, setNextStep, setPreviousStep
 - 
Methods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface java.util.IteratorforEachRemaining, remove
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.TraversalParentaddGlobalChild, addLocalChild, asStep, getGlobalChildren, getSelfAndChildRequirements, integrateChild, removeGlobalChild, removeLocalChild, replaceLocalChild
 
- 
 
- 
- 
- 
Constructor Detail- 
CallSteppublic CallStep(Traversal.Admin traversal, boolean isStart) 
 - 
CallSteppublic CallStep(Traversal.Admin traversal, boolean isStart, String service) 
 - 
CallSteppublic CallStep(Traversal.Admin traversal, boolean isStart, String service, Map staticParams) 
 - 
CallSteppublic CallStep(Traversal.Admin traversal, boolean isStart, String service, Map staticParams, Traversal.Admin<S,Map> mapTraversal) 
 
- 
 - 
Method Detail- 
processNextStartprotected Traverser.Admin<E> processNextStart() - Specified by:
- processNextStartin class- AbstractStep<S,E>
 
 - 
closepublic void close() - Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- TraversalParent
 
 - 
closeIteratorprotected void closeIterator() 
 - 
getMergedParamsprotected Map getMergedParams() 
 - 
getMergedParamsprotected Map getMergedParams(Traverser.Admin<S> traverser) 
 - 
getMergedParamsprotected Map getMergedParams(TraverserSet<S> traverserSet) 
 - 
startprotected CloseableIterator start() 
 - 
flatMapprotected CloseableIterator flatMap(Traverser.Admin<S> traverser) 
 - 
flatMapprotected CloseableIterator flatMap(TraverserSet<S> traverserSet) 
 - 
getServiceRegistryprotected ServiceRegistry getServiceRegistry() 
 - 
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.
 - 
getLocalChildrenpublic <S,E> List<Traversal.Admin<S,E>> getLocalChildren() - Specified by:
- getLocalChildrenin interface- TraversalParent
 
 - 
setTraversalpublic void setTraversal(Traversal.Admin<?,?> parentTraversal) Description copied from interface:StepSet theTraversalthat this step is contained within.- Specified by:
- setTraversalin interface- Step<S,E>
- Overrides:
- setTraversalin class- AbstractStep<S,E>
- Parameters:
- parentTraversal- the new traversal for this step
 
 - 
getRequirementspublic Set<TraverserRequirement> getRequirements() Description copied from interface:StepProvide the necessaryTraverserRequirementthat must be met by the traverser in order for the step to function properly. The provided default implements returns an empty set.- Specified by:
- getRequirementsin interface- Step<S,E>
- Returns:
- the set of requirements
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- AbstractStep<S,E>
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- AbstractStep<S,E>
 
 - 
clonepublic CallStep<S,E> 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.
 - 
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
 
 - 
getParameterspublic Parameters getParameters() Description copied from interface:ParameterizingGets the parameters on the step.- Specified by:
- getParametersin interface- Parameterizing
 
 
- 
 
-