public final class FilterRankingStrategy extends AbstractTraversalStrategy<TraversalStrategy.OptimizationStrategy> implements TraversalStrategy.OptimizationStrategy
FilterRankingStrategy
reorders filter- and order-steps according to their rank. Step ranks are defined within
the strategy and indicate when it is reasonable for a step to move in front of another. It will also do its best to
push step labels as far "right" as possible in order to keep traversers as small and bulkable as possible prior to
the absolute need for path-labeling.__.order().dedup() // is replaced by __.dedup().order() __.dedup().filter(out()).has("value", 0) // is replaced by __.has("value", 0).filter(out()).dedup()
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>> |
applyPrior()
The set of strategies that must be executed before this strategy is executed.
|
static FilterRankingStrategy |
instance() |
equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo, getTraversalCategory
applyPost, getConfiguration
public void apply(Traversal.Admin<?,?> traversal)
apply
in interface TraversalStrategy<TraversalStrategy.OptimizationStrategy>
public Set<Class<? extends TraversalStrategy.OptimizationStrategy>> applyPrior()
TraversalStrategy
applyPrior
in interface TraversalStrategy<TraversalStrategy.OptimizationStrategy>
public static FilterRankingStrategy instance()
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.