public final class MatchStep<S,E> extends ComputerAwareStep<S,Map<String,E>> implements TraversalParent, Scoping
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.Variable
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdSetByChild
TYPICAL_GLOBAL_REQUIREMENTS, TYPICAL_GLOBAL_REQUIREMENTS_ARRAY, TYPICAL_LOCAL_REQUIREMENTS, TYPICAL_LOCAL_REQUIREMENTS_ARRAY
Constructor and Description |
---|
MatchStep(Traversal.Admin traversal,
ConjunctionStep.Conjunction conjunction,
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<Map<String,E>>> |
computerAlgorithm() |
ConjunctionStep.Conjunction |
getConjunction() |
List<Traversal.Admin<Object,Object>> |
getGlobalChildren() |
MatchStep.MatchAlgorithm |
getMatchAlgorithm() |
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() |
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 |
setMatchAlgorithm(Class<? extends MatchStep.MatchAlgorithm> matchAlgorithmClass) |
protected Iterator<Traverser<Map<String,E>>> |
standardAlgorithm() |
String |
toString() |
onEngine, processNextStart
addLabel, addStart, addStarts, equals, getId, getLabels, getNextStep, getPreviousStep, getTraversal, hasNext, next, removeLabel, setId, setNextStep, setPreviousStep, setTraversal
finalize, getClass, notify, notifyAll, wait, wait, wait
addLocalChild, asStep, getLocalChildren, getSelfAndChildRequirements, integrateChild, removeLocalChild
getNullableScopeValue, getScopeValue
forEachRemaining, remove
public MatchStep(Traversal.Admin traversal, ConjunctionStep.Conjunction conjunction, Traversal... matchTraversals)
public ConjunctionStep.Conjunction getConjunction()
public void addGlobalChild(Traversal.Admin<?,?> globalChildTraversal)
addGlobalChild
in interface TraversalParent
public void removeGlobalChild(Traversal.Admin<?,?> globalChildTraversal)
removeGlobalChild
in interface TraversalParent
public List<Traversal.Admin<Object,Object>> getGlobalChildren()
getGlobalChildren
in interface TraversalParent
public Set<String> getScopeKeys()
getScopeKeys
in interface Scoping
public void reset()
Step
public void setMatchAlgorithm(Class<? extends MatchStep.MatchAlgorithm> matchAlgorithmClass)
public MatchStep.MatchAlgorithm getMatchAlgorithm()
public MatchStep<S,E> clone()
Step
EmptyStep
.protected Iterator<Traverser<Map<String,E>>> standardAlgorithm() throws NoSuchElementException
standardAlgorithm
in class ComputerAwareStep<S,Map<String,E>>
NoSuchElementException
protected Iterator<Traverser<Map<String,E>>> computerAlgorithm() throws NoSuchElementException
computerAlgorithm
in class ComputerAwareStep<S,Map<String,E>>
NoSuchElementException
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.Copyright © 2013–2015 Apache Software Foundation. All rights reserved.