Class TraversalStrategyProxy<T extends TraversalStrategy>
java.lang.Object
org.apache.tinkerpop.gremlin.process.traversal.strategy.TraversalStrategyProxy<T>
- All Implemented Interfaces:
Serializable,Comparable,TraversalStrategy
public final class TraversalStrategyProxy<T extends TraversalStrategy>
extends Object
implements Serializable, TraversalStrategy
This class is for use with
GremlinLang and for serialization purposes. It is not meant for direct use with
TraversalSource.withStrategies(TraversalStrategy[]).- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.process.traversal.TraversalStrategy
TraversalStrategy.DecorationStrategy, TraversalStrategy.FinalizationStrategy, TraversalStrategy.OptimizationStrategy, TraversalStrategy.ProviderOptimizationStrategy, TraversalStrategy.VerificationStrategy -
Constructor Summary
ConstructorsConstructorDescriptionTraversalStrategyProxy(Class<T> strategyClass, org.apache.commons.configuration2.Configuration configuration) Deprecated.This constructor has been deprecated since 4.0.0 as TraversalStrategyProxy is now based around strategy names, instead of strategy classes.TraversalStrategyProxy(String strategyName) TraversalStrategyProxy(String strategyName, org.apache.commons.configuration2.Configuration configuration) TraversalStrategyProxy(T traversalStrategy) -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(Traversal.Admin traversal) The transformation the strategy applies to the traversal.intorg.apache.commons.configuration2.ConfigurationGet the configuration representation of this strategy.Deprecated.As of 4.0.0, TraversalStrategyProxy is now based around strategy names, instead of strategy classes.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.TraversalStrategy
applyPost, applyPrior, compareTo, getTraversalCategory
-
Constructor Details
-
TraversalStrategyProxy
-
TraversalStrategyProxy
public TraversalStrategyProxy(String strategyName, org.apache.commons.configuration2.Configuration configuration) -
TraversalStrategyProxy
-
TraversalStrategyProxy
@Deprecated public TraversalStrategyProxy(Class<T> strategyClass, org.apache.commons.configuration2.Configuration configuration) Deprecated.This constructor has been deprecated since 4.0.0 as TraversalStrategyProxy is now based around strategy names, instead of strategy classes. UseTraversalStrategyProxy(String, Configuration)instead.
-
-
Method Details
-
getConfiguration
public org.apache.commons.configuration2.Configuration getConfiguration()Description copied from interface:TraversalStrategyGet the configuration representation of this strategy. This is useful for converting a strategy into a serialized form.- Specified by:
getConfigurationin interfaceTraversalStrategy<T extends TraversalStrategy>- Returns:
- the configuration used to create this strategy
-
getStrategyName
-
getStrategyClass
Deprecated.As of 4.0.0, TraversalStrategyProxy is now based around strategy names, instead of strategy classes. For compatibility, this method will attempt to lookup the strategy name inTraversalStrategies.GlobalCache. Use ofgetStrategyName()is preferred. If a class object is needed, users should utilize a mapping of strategy name to strategy class which is appropriate for their environment. -
apply
Description copied from interface:TraversalStrategyThe transformation the strategy applies to the traversal.- Specified by:
applyin interfaceTraversalStrategy<T extends TraversalStrategy>
-
compareTo
- Specified by:
compareToin interfaceComparable<T extends TraversalStrategy>
-
toString
-