Class PathProcessorStrategy
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.process.traversal.strategy.AbstractTraversalStrategy<TraversalStrategy.OptimizationStrategy>
- 
- org.apache.tinkerpop.gremlin.process.traversal.strategy.optimization.PathProcessorStrategy
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<Class<? extends TraversalStrategy>>,- TraversalStrategy<TraversalStrategy.OptimizationStrategy>,- TraversalStrategy.OptimizationStrategy
 
 public final class PathProcessorStrategy extends AbstractTraversalStrategy<TraversalStrategy.OptimizationStrategy> implements TraversalStrategy.OptimizationStrategy PathProcessStrategyis an OLAP strategy that does its best to turn non-local children inwhere()andselect()into local children by inlining components of the non-local child. In this way,PathProcessStrategyhelps to ensure that more traversals meet the local child constraint imposed on OLAP traversals.- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
- See Also:
- Serialized Form
- Example:
- __.select(a).by(x) // is replaced by select(a).map(x) __.select(a,b).by(x).by(y) // is replaced by select(a).by(x).as(a).select(b).by(y).as(b).select(a,b) __.where(as(a).out().as(b)) // is replaced by as(xyz).select(a).where(out().as(b)).select(xyz) __.where(as(a).out()) // is replaced by as(xyz).select(a).filter(out()).select(xyz) 
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.process.traversal.TraversalStrategyTraversalStrategy.DecorationStrategy, TraversalStrategy.FinalizationStrategy, TraversalStrategy.OptimizationStrategy, TraversalStrategy.ProviderOptimizationStrategy, TraversalStrategy.VerificationStrategy
 
- 
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(Traversal.Admin<?,?> traversal)The transformation the strategy applies to the traversal.Set<Class<? extends TraversalStrategy.OptimizationStrategy>>applyPost()TheGValueReductionStrategyshould be the last TinkerPop optimnization strategy applied.Set<Class<? extends TraversalStrategy.OptimizationStrategy>>applyPrior()The set of strategies that must be executed before this strategy is executed.static PathProcessorStrategyinstance()- 
Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.strategy.AbstractTraversalStrategyequals, hashCode, toString
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.TraversalStrategygetConfiguration
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.TraversalStrategy.OptimizationStrategycompareTo, getTraversalCategory
 
- 
 
- 
- 
- 
Method Detail- 
applypublic void apply(Traversal.Admin<?,?> traversal) Description copied from interface:TraversalStrategyThe transformation the strategy applies to the traversal.- Specified by:
- applyin interface- TraversalStrategy<TraversalStrategy.OptimizationStrategy>
 
 - 
applyPriorpublic Set<Class<? extends TraversalStrategy.OptimizationStrategy>> applyPrior() Description copied from interface:TraversalStrategyThe set of strategies that must be executed before this strategy is executed. If there are no ordering requirements, the default implementation returns an empty set.- Specified by:
- applyPriorin interface- TraversalStrategy<TraversalStrategy.OptimizationStrategy>
- Returns:
- the set of strategies that must be executed prior to this one.
 
 - 
applyPostpublic Set<Class<? extends TraversalStrategy.OptimizationStrategy>> applyPost() Description copied from interface:TraversalStrategy.OptimizationStrategyTheGValueReductionStrategyshould be the last TinkerPop optimnization strategy applied. Adding it here ensures will help to enforce that more globally. Implementations overriding this method should have a good reason to ignore this.- Specified by:
- applyPostin interface- TraversalStrategy<TraversalStrategy.OptimizationStrategy>
- Specified by:
- applyPostin interface- TraversalStrategy.OptimizationStrategy
- Returns:
- the set of strategies that must be executed post this one
 
 - 
instancepublic static PathProcessorStrategy instance() 
 
- 
 
-