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
TraversalStrategy.DecorationStrategy, TraversalStrategy.FinalizationStrategy, TraversalStrategy.OptimizationStrategy, TraversalStrategy.ProviderOptimizationStrategy, TraversalStrategy.VerificationStrategy
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 IncidentToAdjacentStrategy |
instance() |
equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo, getTraversalCategory
applyPost
public void apply(Traversal.Admin<?,?> traversal)
apply
in interface TraversalStrategy<TraversalStrategy.OptimizationStrategy>
public static IncidentToAdjacentStrategy instance()
public Set<Class<? extends TraversalStrategy.OptimizationStrategy>> applyPrior()
TraversalStrategy
applyPrior
in interface TraversalStrategy<TraversalStrategy.OptimizationStrategy>
Copyright © 2013–2016 Apache Software Foundation. All rights reserved.