public final class MatchStep<S,E> extends ComputerAwareStep<S,Map<String,E>> implements TraversalParent, Scoping, PathProcessor
| Modifier and Type | Class and Description |
|---|---|
static class |
MatchStep.CountMatchAlgorithm |
static class |
MatchStep.GreedyMatchAlgorithm |
static class |
MatchStep.Helper |
static interface |
MatchStep.MatchAlgorithm |
static class |
MatchStep.MatchEndStep |
static class |
MatchStep.MatchStartStep |
static class |
MatchStep.TraversalType |
ComputerAwareStep.EndStep<S>Scoping.VariablePathProcessor.ElementRequirementid, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild| Constructor and Description |
|---|
MatchStep(Traversal.Admin traversal,
ConnectiveStep.Connective connective,
Traversal... matchTraversals) |
| Modifier and Type | Method and Description |
|---|---|
void |
addGlobalChild(Traversal.Admin<?,?> globalChildTraversal) |
MatchStep<S,E> |
clone()
Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.
|
protected Iterator<Traverser.Admin<Map<String,E>>> |
computerAlgorithm() |
ConnectiveStep.Connective |
getConnective() |
List<Traversal.Admin<Object,Object>> |
getGlobalChildren() |
Set<String> |
getKeepLabels() |
MatchStep.MatchAlgorithm |
getMatchAlgorithm() |
Set<String> |
getMatchEndLabels() |
Set<String> |
getMatchStartLabels() |
Set<TraverserRequirement> |
getRequirements()
Provide the necessary
TraverserRequirement that must be met by the traverser in order for the step to
function properly. |
Set<String> |
getScopeKeys()
Get the labels that this scoping step will access during the traversal
|
int |
hashCode() |
void |
removeGlobalChild(Traversal.Admin<?,?> globalChildTraversal) |
void |
reset()
Reset the state of the step such that it has no incoming starts.
|
void |
setDedupLabels(Set<String> labels) |
void |
setKeepLabels(Set<String> keepLabels) |
void |
setMatchAlgorithm(Class<? extends MatchStep.MatchAlgorithm> matchAlgorithmClass) |
void |
setTraversal(Traversal.Admin<?,?> parentTraversal)
Set the
Traversal that this step is contained within. |
protected Iterator<Traverser.Admin<Map<String,E>>> |
standardAlgorithm() |
String |
toString() |
onGraphComputer, processNextStartaddLabel, addStart, addStarts, equals, getId, getLabels, getNextStep, getPreviousStep, getTraversal, hasNext, next, removeLabel, setId, setNextStep, setPreviousStepfinalize, getClass, notify, notifyAll, wait, wait, waitaddLocalChild, asStep, close, getLocalChildren, getSelfAndChildRequirements, integrateChild, removeLocalChildgetNullableScopeValue, getScopeValuegetMaxRequirement, processTraverserPathLabelsatMaster, atMasterforEachRemaining, removepublic MatchStep(Traversal.Admin traversal, ConnectiveStep.Connective connective, Traversal... matchTraversals)
public ConnectiveStep.Connective getConnective()
public void addGlobalChild(Traversal.Admin<?,?> globalChildTraversal)
addGlobalChild in interface TraversalParentpublic void removeGlobalChild(Traversal.Admin<?,?> globalChildTraversal)
removeGlobalChild in interface TraversalParentpublic List<Traversal.Admin<Object,Object>> getGlobalChildren()
getGlobalChildren in interface TraversalParentpublic void setKeepLabels(Set<String> keepLabels)
setKeepLabels in interface PathProcessorpublic Set<String> getKeepLabels()
getKeepLabels in interface PathProcessorpublic Set<String> getScopeKeys()
ScopinggetScopeKeys in interface Scopingpublic void reset()
Steppublic void setMatchAlgorithm(Class<? extends MatchStep.MatchAlgorithm> matchAlgorithmClass)
public MatchStep.MatchAlgorithm getMatchAlgorithm()
public MatchStep<S,E> clone()
StepStep.reset() is called. Moreover, the previous and next steps should be set to EmptyStep.public void setTraversal(Traversal.Admin<?,?> parentTraversal)
StepTraversal that this step is contained within.setTraversal in interface Step<S,Map<String,E>>setTraversal in class AbstractStep<S,Map<String,E>>parentTraversal - the new traversal for this stepprotected Iterator<Traverser.Admin<Map<String,E>>> standardAlgorithm() throws NoSuchElementException
standardAlgorithm in class ComputerAwareStep<S,Map<String,E>>NoSuchElementExceptionprotected Iterator<Traverser.Admin<Map<String,E>>> computerAlgorithm() throws NoSuchElementException
computerAlgorithm in class ComputerAwareStep<S,Map<String,E>>NoSuchElementExceptionpublic 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.Copyright © 2013–2020 Apache Software Foundation. All rights reserved.