public final class SubgraphStep extends SideEffectStep<Edge> implements SideEffectCapable
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild
Constructor and Description |
---|
SubgraphStep(Traversal.Admin traversal,
String sideEffectKey) |
Modifier and Type | Method and Description |
---|---|
SubgraphStep |
clone()
Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.
|
Set<TraverserRequirement> |
getRequirements()
Provide the necessary
TraverserRequirement that must be met by the traverser in order for the step to
function properly. |
String |
getSideEffectKey()
The side-effect key of the step.
|
int |
hashCode() |
protected void |
sideEffect(Traverser.Admin<Edge> traverser) |
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
generateFinalResult
forEachRemaining, remove
public SubgraphStep(Traversal.Admin traversal, String sideEffectKey)
protected void sideEffect(Traverser.Admin<Edge> traverser)
sideEffect
in class SideEffectStep<Edge>
public String getSideEffectKey()
SideEffectCapable
getSideEffectKey
in interface SideEffectCapable
public String toString()
toString
in class AbstractStep<Edge,Edge>
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.getRequirements
in interface Step<Edge,Edge>
public SubgraphStep clone()
Step
Step.reset()
is called. Moreover, the previous and next steps should be set to EmptyStep
.public int hashCode()
hashCode
in class AbstractStep<Edge,Edge>
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.