Class OptionsStrategy
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.process.traversal.strategy.AbstractTraversalStrategy<TraversalStrategy.DecorationStrategy>
-
- org.apache.tinkerpop.gremlin.process.traversal.strategy.decoration.OptionsStrategy
-
- All Implemented Interfaces:
Serializable,Comparable<Class<? extends TraversalStrategy>>,TraversalStrategy<TraversalStrategy.DecorationStrategy>,TraversalStrategy.DecorationStrategy
public class OptionsStrategy extends AbstractTraversalStrategy<TraversalStrategy.DecorationStrategy> implements TraversalStrategy.DecorationStrategy
This strategy will not alter the traversal. It is only a holder for configuration options associated with the traversal meant to be accessed by steps or other classes that might have some interaction with it. It is essentially a way for users to provide traversal level configuration options that can be used in various ways by different graph providers.- Author:
- Stephen Mallette (http://stephen.genoprime.com)
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOptionsStrategy.Builder-
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.process.traversal.TraversalStrategy
TraversalStrategy.DecorationStrategy, TraversalStrategy.FinalizationStrategy, TraversalStrategy.OptimizationStrategy, TraversalStrategy.ProviderOptimizationStrategy, TraversalStrategy.VerificationStrategy
-
-
Field Summary
Fields Modifier and Type Field Description static OptionsStrategyEMPTYAn emptyOptionsStrategywith no configuration values inside.-
Fields inherited from interface org.apache.tinkerpop.gremlin.process.traversal.TraversalStrategy
STRATEGY
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(Traversal.Admin<?,?> traversal)static OptionsStrategy.Builderbuild()static OptionsStrategycreate(org.apache.commons.configuration2.Configuration configuration)org.apache.commons.configuration2.ConfigurationgetConfiguration()Get the configuration representation of this strategy.Map<String,Object>getOptions()Gets the options on the strategy as an immutableMap.-
Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.strategy.AbstractTraversalStrategy
equals, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.TraversalStrategy
applyPost, applyPrior
-
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.TraversalStrategy.DecorationStrategy
compareTo, getTraversalCategory
-
-
-
-
Field Detail
-
EMPTY
public static final OptionsStrategy EMPTY
An emptyOptionsStrategywith no configuration values inside.
-
-
Method Detail
-
getOptions
public Map<String,Object> getOptions()
Gets the options on the strategy as an immutableMap.
-
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<TraversalStrategy.DecorationStrategy>- Returns:
- the configuration used to create this strategy
-
apply
public void apply(Traversal.Admin<?,?> traversal)
- Specified by:
applyin interfaceTraversalStrategy<TraversalStrategy.DecorationStrategy>
-
create
public static OptionsStrategy create(org.apache.commons.configuration2.Configuration configuration)
-
build
public static OptionsStrategy.Builder build()
-
-