public final class EmptyTraversalStrategies extends Object implements TraversalStrategies
TraversalStrategies.GlobalCache
STRATEGY_CATEGORIES
Modifier and Type | Method and Description |
---|---|
TraversalStrategies |
addStrategies(TraversalStrategy<?>... strategies)
Add all the provided
TraversalStrategy instances to the current collection. |
void |
applyStrategies(Traversal.Admin<?,?> traversal)
|
TraversalStrategies |
clone() |
TraverserGeneratorFactory |
getTraverserGeneratorFactory()
Get the
TraverserGeneratorFactory to use to generate traversers. |
static EmptyTraversalStrategies |
instance() |
TraversalStrategies |
removeStrategies(Class<? extends TraversalStrategy>... strategyClasses)
Remove all the provided
TraversalStrategy classes from the current collection. |
void |
setTraverserGeneratorFactory(TraverserGeneratorFactory traverserGeneratorFactory)
Set the
TraverserGeneratorFactory to use for determining which Traverser type to generate for the Traversal . |
List<TraversalStrategy<?>> |
toList()
Return all the
TraversalStrategy singleton instances associated with this TraversalStrategies . |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
sortStrategies, visit
public List<TraversalStrategy<?>> toList()
TraversalStrategies
TraversalStrategy
singleton instances associated with this TraversalStrategies
.toList
in interface TraversalStrategies
public void applyStrategies(Traversal.Admin<?,?> traversal)
TraversalStrategies
TraversalStrategy
optimizers to the Traversal
for the stated TraversalEngine
.
This method must ensure that the strategies are sorted prior to application.applyStrategies
in interface TraversalStrategies
traversal
- the traversal to apply the strategies topublic TraversalStrategies addStrategies(TraversalStrategy<?>... strategies)
TraversalStrategies
TraversalStrategy
instances to the current collection.
When all the provided strategies have been added, the collection is resorted.addStrategies
in interface TraversalStrategies
strategies
- the traversal strategies to addpublic TraversalStrategies removeStrategies(Class<? extends TraversalStrategy>... strategyClasses)
TraversalStrategies
TraversalStrategy
classes from the current collection.
When all the provided strategies have been removed, the collection is resorted.removeStrategies
in interface TraversalStrategies
strategyClasses
- the traversal strategies to remove by their classpublic TraversalStrategies clone()
clone
in interface TraversalStrategies
clone
in class Object
public TraverserGeneratorFactory getTraverserGeneratorFactory()
TraversalStrategies
TraverserGeneratorFactory
to use to generate traversers.getTraverserGeneratorFactory
in interface TraversalStrategies
public void setTraverserGeneratorFactory(TraverserGeneratorFactory traverserGeneratorFactory)
TraversalStrategies
TraverserGeneratorFactory
to use for determining which Traverser
type to generate for the Traversal
.setTraverserGeneratorFactory
in interface TraversalStrategies
traverserGeneratorFactory
- the factory to usepublic static EmptyTraversalStrategies instance()
Copyright © 2013–2015 Apache Software Foundation. All rights reserved.