public final class IncidentToAdjacentStrategy extends AbstractTraversalStrategy<TraversalStrategy.OptimizationStrategy> implements TraversalStrategy.OptimizationStrategy
.outE().inV()
, .inE().outV()
and .bothE().otherV()
and replaces these step sequences with .out()
, .in()
or .both()
respectively.
The strategy won't modify the traversal if:
path
step__.outE().inV() // is replaced by __.out() __.inE().outV() // is replaced by __.in() __.bothE().otherV() // is replaced by __.both() __.bothE().bothV() // will not be modified __.outE().inV().path() // will not be modified __.outE().inV().tree() // will not be modified
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 IncidentToAdjacentStrategy |
instance() |
equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo, getTraversalCategory
getConfiguration
public static IncidentToAdjacentStrategy instance()
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 Set<Class<? extends TraversalStrategy.OptimizationStrategy>> applyPost()
TraversalStrategy
applyPost
in interface TraversalStrategy<TraversalStrategy.OptimizationStrategy>
Copyright © 2013–2020 Apache Software Foundation. All rights reserved.