public class HasStep<S extends Element> extends FilterStep<S> implements HasContainerHolder, Configuring
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild
Constructor and Description |
---|
HasStep(Traversal.Admin traversal,
HasContainer... hasContainers) |
Modifier and Type | Method and Description |
---|---|
void |
addHasContainer(HasContainer hasContainer) |
HasStep<S> |
clone()
Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.
|
void |
configure(Object... keyValues)
Accept a configuration to the
Step . |
protected boolean |
filter(Traverser.Admin<S> traverser) |
List<HasContainer> |
getHasContainers() |
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. |
int |
hashCode() |
void |
removeHasContainer(HasContainer hasContainer) |
String |
toString() |
processNextStart
addLabel, addStart, addStarts, equals, getId, getLabels, getNextStep, getPreviousStep, getStarts, getTraversal, hasNext, hasStarts, isTraverserStepIdAndLabelsSetByChild, next, prepareTraversalForNextStep, removeLabel, reset, setId, setNextStep, setPreviousStep, setTraversal
finalize, getClass, notify, notifyAll, wait, wait, wait
forEachRemaining, remove
public HasStep(Traversal.Admin traversal, HasContainer... hasContainers)
public Parameters getParameters()
Parameterizing
getParameters
in interface Parameterizing
public void configure(Object... keyValues)
Configuring
Step
. 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 Configuring
protected boolean filter(Traverser.Admin<S> traverser)
filter
in class FilterStep<S extends Element>
public String toString()
public List<HasContainer> getHasContainers()
getHasContainers
in interface HasContainerHolder
public void removeHasContainer(HasContainer hasContainer)
removeHasContainer
in interface HasContainerHolder
public void addHasContainer(HasContainer hasContainer)
addHasContainer
in interface HasContainerHolder
public Set<TraverserRequirement> getRequirements()
Step
TraverserRequirement
that must be met by the traverser in order for the step to
function properly. The provided default implements returns an empty set.public HasStep<S> clone()
Step
Step.reset()
is called. Moreover, the previous and next steps should be set to EmptyStep
.Copyright © 2013–2022 Apache Software Foundation. All rights reserved.