public interface TraversalStrategy extends Serializable
TraversalStrategy defines a particular atomic operation for mutating a Traversal prior to its evaluation.
Traversal strategies are typically used for optimizing a traversal for the particular underlying graph engine.
A TraversalStrategy should not have a public constructor as they should not maintain state between applications.
Make use of a singleton instance() object to reduce object creation on the JVM.| Modifier and Type | Method and Description |
|---|---|
void |
apply(Traversal.Admin<?,?> traversal) |
default Set<Class<? extends TraversalStrategy>> |
applyPost() |
default Set<Class<? extends TraversalStrategy>> |
applyPrior() |
void apply(Traversal.Admin<?,?> traversal)
default Set<Class<? extends TraversalStrategy>> applyPrior()
default Set<Class<? extends TraversalStrategy>> applyPost()
Copyright © 2013–2015 Apache Software Foundation. All rights reserved.