public final class MatchPredicateStrategy extends AbstractTraversalStrategy<TraversalStrategy.OptimizationStrategy> implements TraversalStrategy.OptimizationStrategy
MatchWhereStrategy
will fold any post-where()
step that maintains a traversal constraint into
match()
. MatchStep
is intelligent with traversal constraint applications and thus, can more
efficiently use the constraint of WhereTraversalStep
or WherePredicateStep
.__.match(a,b).where(c) // is replaced by __.match(a,b,c) __.match(a,b).select().where(c) // is replaced by __.match(a,b,c).select()
TraversalStrategy.DecorationStrategy, TraversalStrategy.FinalizationStrategy, TraversalStrategy.OptimizationStrategy, TraversalStrategy.ProviderOptimizationStrategy, TraversalStrategy.VerificationStrategy
STRATEGY
Modifier and Type | Method and Description |
---|---|
void |
apply(Traversal.Admin<?,?> traversal) |
Set<Class<? extends TraversalStrategy.OptimizationStrategy>> |
applyPost()
The set of strategies that must be executed after this strategy is executed.
|
Set<Class<? extends TraversalStrategy.OptimizationStrategy>> |
applyPrior()
The set of strategies that must be executed before this strategy is executed.
|
static MatchPredicateStrategy |
instance() |
equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo, getTraversalCategory
getConfiguration
public void apply(Traversal.Admin<?,?> traversal)
apply
in interface TraversalStrategy<TraversalStrategy.OptimizationStrategy>
public static MatchPredicateStrategy instance()
public Set<Class<? extends TraversalStrategy.OptimizationStrategy>> applyPrior()
TraversalStrategy
applyPrior
in interface TraversalStrategy<TraversalStrategy.OptimizationStrategy>
public Set<Class<? extends TraversalStrategy.OptimizationStrategy>> applyPost()
TraversalStrategy
applyPost
in interface TraversalStrategy<TraversalStrategy.OptimizationStrategy>
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.