Uses of Interface
org.apache.tinkerpop.gremlin.process.traversal.TraversalStrategy
-
-
Uses of TraversalStrategy in org.apache.tinkerpop.gremlin
Methods in org.apache.tinkerpop.gremlin with parameters of type TraversalStrategy Modifier and Type Method Description GraphTraversalSource
GraphManager.ManagedGraphProvider. traversal(Graph graph, TraversalStrategy... strategies)
default GraphTraversalSource
GraphProvider. traversal(Graph graph, TraversalStrategy... strategies)
Create aGraphTraversalSource
from aGraph
instance. -
Uses of TraversalStrategy in org.apache.tinkerpop.gremlin.groovy.jsr223.dsl.credential
Methods in org.apache.tinkerpop.gremlin.groovy.jsr223.dsl.credential with parameters of type TraversalStrategy Modifier and Type Method Description CredentialTraversalSource
CredentialTraversalSource. withStrategies(TraversalStrategy... traversalStrategies)
-
Uses of TraversalStrategy in org.apache.tinkerpop.gremlin.language.grammar
Fields in org.apache.tinkerpop.gremlin.language.grammar with type parameters of type TraversalStrategy Modifier and Type Field Description protected DefaultGremlinBaseVisitor<TraversalStrategy>
GenericLiteralVisitor. traversalStrategyVisitor
Methods in org.apache.tinkerpop.gremlin.language.grammar that return TraversalStrategy Modifier and Type Method Description static TraversalStrategy[]
GenericLiteralVisitor. getTraversalStrategyList(GremlinParser.TraversalStrategyListContext traversalStrategyListContext, DefaultGremlinBaseVisitor<TraversalStrategy> traversalStrategyVisitor)
Parse a TraversalStrategy literal list context and return a string arrayTraversalStrategy
TraversalStrategyVisitor. visitTraversalStrategy(GremlinParser.TraversalStrategyContext ctx)
Method parameters in org.apache.tinkerpop.gremlin.language.grammar with type arguments of type TraversalStrategy Modifier and Type Method Description static TraversalStrategy[]
GenericLiteralVisitor. getTraversalStrategyList(GremlinParser.TraversalStrategyListContext traversalStrategyListContext, DefaultGremlinBaseVisitor<TraversalStrategy> traversalStrategyVisitor)
Parse a TraversalStrategy literal list context and return a string array -
Uses of TraversalStrategy in org.apache.tinkerpop.gremlin.process.computer.traversal.strategy.decoration
Classes in org.apache.tinkerpop.gremlin.process.computer.traversal.strategy.decoration that implement TraversalStrategy Modifier and Type Class Description class
VertexProgramStrategy
-
Uses of TraversalStrategy in org.apache.tinkerpop.gremlin.process.computer.traversal.strategy.finalization
Classes in org.apache.tinkerpop.gremlin.process.computer.traversal.strategy.finalization that implement TraversalStrategy Modifier and Type Class Description class
ComputerFinalizationStrategy
-
Uses of TraversalStrategy in org.apache.tinkerpop.gremlin.process.computer.traversal.strategy.optimization
Classes in org.apache.tinkerpop.gremlin.process.computer.traversal.strategy.optimization that implement TraversalStrategy Modifier and Type Class Description class
GraphFilterStrategy
class
MessagePassingReductionStrategy
-
Uses of TraversalStrategy in org.apache.tinkerpop.gremlin.process.computer.traversal.strategy.verification
Classes in org.apache.tinkerpop.gremlin.process.computer.traversal.strategy.verification that implement TraversalStrategy Modifier and Type Class Description class
VertexProgramRestrictionStrategy
Detects the presence of aVertexProgramStrategy
and throws anIllegalStateException
if it is found. -
Uses of TraversalStrategy in org.apache.tinkerpop.gremlin.process.remote.traversal.strategy.decoration
Classes in org.apache.tinkerpop.gremlin.process.remote.traversal.strategy.decoration that implement TraversalStrategy Modifier and Type Class Description class
RemoteStrategy
Reconstructs aTraversal
by appending aRemoteStep
to its end. -
Uses of TraversalStrategy in org.apache.tinkerpop.gremlin.process.traversal
Classes in org.apache.tinkerpop.gremlin.process.traversal with type parameters of type TraversalStrategy Modifier and Type Interface Description interface
TraversalStrategy<S extends TraversalStrategy>
ATraversalStrategy
defines a particular atomic operation for mutating aTraversal
prior to its evaluation.Subinterfaces of TraversalStrategy in org.apache.tinkerpop.gremlin.process.traversal Modifier and Type Interface Description static interface
TraversalStrategy.DecorationStrategy
Implemented by strategies that adds "application logic" to the traversal (e.g.static interface
TraversalStrategy.FinalizationStrategy
Implemented by strategies that do final behaviors that require a fully compiled traversal to work (e.g.static interface
TraversalStrategy.OptimizationStrategy
Implemented by strategies that rewrite the traversal to be more efficient, but with the same semantics (e.g.static interface
TraversalStrategy.ProviderOptimizationStrategy
Implemented by strategies that rewrite the traversal to be more efficient, but with the same semantics.static interface
TraversalStrategy.VerificationStrategy
Implemented by strategies where there is no more behavioral tweaking of the traversal required.Fields in org.apache.tinkerpop.gremlin.process.traversal with type parameters of type TraversalStrategy Modifier and Type Field Description static List<Class<? extends TraversalStrategy>>
TraversalStrategies. STRATEGY_CATEGORIES
Methods in org.apache.tinkerpop.gremlin.process.traversal with type parameters of type TraversalStrategy Modifier and Type Method Description default <T extends TraversalStrategy>
Optional<T>TraversalStrategies. getStrategy(Class<T> traversalStrategyClass)
Return theTraversalStrategy
instance associated with the provided class.Methods in org.apache.tinkerpop.gremlin.process.traversal that return types with arguments of type TraversalStrategy Modifier and Type Method Description Iterator<TraversalStrategy<?>>
TraversalStrategies. iterator()
Return anIterator
of theTraversalStrategy
instances.static Set<TraversalStrategy<?>>
TraversalStrategies. sortStrategies(Set<TraversalStrategy<?>> strategies)
Sorts the list of provided strategies such that theapplyPost()
andapplyPrior()
dependencies are respected.default List<TraversalStrategy<?>>
TraversalStrategies. toList()
Return an immutable list of theTraversalStrategy
instances.Methods in org.apache.tinkerpop.gremlin.process.traversal with parameters of type TraversalStrategy Modifier and Type Method Description TraversalStrategies
TraversalStrategies. addStrategies(TraversalStrategy<?>... strategies)
Add all the providedTraversalStrategy
instances to the current collection.default TraversalSource
TraversalSource. withStrategies(TraversalStrategy... traversalStrategies)
Add an arbitrary collection ofTraversalStrategy
instances to the traversal source.Method parameters in org.apache.tinkerpop.gremlin.process.traversal with type arguments of type TraversalStrategy Modifier and Type Method Description default int
TraversalStrategy. compareTo(Class<? extends TraversalStrategy> otherTraversalCategory)
default int
TraversalStrategy.DecorationStrategy. compareTo(Class<? extends TraversalStrategy> otherTraversalCategory)
default int
TraversalStrategy.FinalizationStrategy. compareTo(Class<? extends TraversalStrategy> otherTraversalCategory)
default int
TraversalStrategy.OptimizationStrategy. compareTo(Class<? extends TraversalStrategy> otherTraversalCategory)
default int
TraversalStrategy.ProviderOptimizationStrategy. compareTo(Class<? extends TraversalStrategy> otherTraversalCategory)
default int
TraversalStrategy.VerificationStrategy. compareTo(Class<? extends TraversalStrategy> otherTraversalCategory)
static Set<TraversalStrategy<?>>
TraversalStrategies. sortStrategies(Set<TraversalStrategy<?>> strategies)
Sorts the list of provided strategies such that theapplyPost()
andapplyPrior()
dependencies are respected.static void
TraversalStrategies. visit(Map<Class<? extends TraversalStrategy>,Set<Class<? extends TraversalStrategy>>> dependencyMap, List<Class<? extends TraversalStrategy>> sortedStrategyClasses, Set<Class<? extends TraversalStrategy>> seenStrategyClases, List<Class<? extends TraversalStrategy>> unprocessedStrategyClasses, Class<? extends TraversalStrategy> strategyClass)
static void
TraversalStrategies. visit(Map<Class<? extends TraversalStrategy>,Set<Class<? extends TraversalStrategy>>> dependencyMap, List<Class<? extends TraversalStrategy>> sortedStrategyClasses, Set<Class<? extends TraversalStrategy>> seenStrategyClases, List<Class<? extends TraversalStrategy>> unprocessedStrategyClasses, Class<? extends TraversalStrategy> strategyClass)
static void
TraversalStrategies. visit(Map<Class<? extends TraversalStrategy>,Set<Class<? extends TraversalStrategy>>> dependencyMap, List<Class<? extends TraversalStrategy>> sortedStrategyClasses, Set<Class<? extends TraversalStrategy>> seenStrategyClases, List<Class<? extends TraversalStrategy>> unprocessedStrategyClasses, Class<? extends TraversalStrategy> strategyClass)
static void
TraversalStrategies. visit(Map<Class<? extends TraversalStrategy>,Set<Class<? extends TraversalStrategy>>> dependencyMap, List<Class<? extends TraversalStrategy>> sortedStrategyClasses, Set<Class<? extends TraversalStrategy>> seenStrategyClases, List<Class<? extends TraversalStrategy>> unprocessedStrategyClasses, Class<? extends TraversalStrategy> strategyClass)
static void
TraversalStrategies. visit(Map<Class<? extends TraversalStrategy>,Set<Class<? extends TraversalStrategy>>> dependencyMap, List<Class<? extends TraversalStrategy>> sortedStrategyClasses, Set<Class<? extends TraversalStrategy>> seenStrategyClases, List<Class<? extends TraversalStrategy>> unprocessedStrategyClasses, Class<? extends TraversalStrategy> strategyClass)
-
Uses of TraversalStrategy in org.apache.tinkerpop.gremlin.process.traversal.dsl.graph
Methods in org.apache.tinkerpop.gremlin.process.traversal.dsl.graph with parameters of type TraversalStrategy Modifier and Type Method Description GraphTraversalSource
GraphTraversalSource. withStrategies(TraversalStrategy... traversalStrategies)
Add an arbitrary collection ofTraversalStrategy
instances to the traversal source. -
Uses of TraversalStrategy in org.apache.tinkerpop.gremlin.process.traversal.strategy
Classes in org.apache.tinkerpop.gremlin.process.traversal.strategy with type parameters of type TraversalStrategy Modifier and Type Class Description class
AbstractTraversalStrategy<S extends TraversalStrategy>
class
TraversalStrategyProxy<T extends TraversalStrategy>
This class is for use withBytecode
and for serialization purposes.Classes in org.apache.tinkerpop.gremlin.process.traversal.strategy that implement TraversalStrategy Modifier and Type Class Description class
AbstractTraversalStrategy<S extends TraversalStrategy>
class
TraversalStrategyProxy<T extends TraversalStrategy>
This class is for use withBytecode
and for serialization purposes. -
Uses of TraversalStrategy in org.apache.tinkerpop.gremlin.process.traversal.strategy.decoration
Classes in org.apache.tinkerpop.gremlin.process.traversal.strategy.decoration that implement TraversalStrategy Modifier and Type Class Description class
ConnectiveStrategy
class
ElementIdStrategy
Provides a degree of control over element identifier assignment as some graphs don't provide that feature.class
EventStrategy
A strategy that raises events whenMutating
steps are encountered and successfully executed.class
HaltedTraverserStrategy
class
OptionsStrategy
This strategy will not alter the traversal.class
PartitionStrategy
PartitionStrategy
partitions the vertices, edges and vertex properties of a graph into String named partitions (i.e.class
RequirementsStrategy
class
SackStrategy
TheSackStrategy
is used internal to thewithSack()
steps ofTraversalSource
and is not typically constructed directly.class
SeedStrategy
A strategy that resets the specifiedseed
value forSeedable
steps, which in turn will produce deterministic results from those steps.class
SideEffectStrategy
class
SubgraphStrategy
ThisTraversalStrategy
provides a way to limit the view of aTraversal
.class
TranslationStrategy
-
Uses of TraversalStrategy in org.apache.tinkerpop.gremlin.process.traversal.strategy.finalization
Classes in org.apache.tinkerpop.gremlin.process.traversal.strategy.finalization that implement TraversalStrategy Modifier and Type Class Description class
MatchAlgorithmStrategy
class
ProfileStrategy
class
ReferenceElementStrategy
A strategy that detaches traversers with graph elements as references (i.e. -
Uses of TraversalStrategy in org.apache.tinkerpop.gremlin.process.traversal.strategy.optimization
Classes in org.apache.tinkerpop.gremlin.process.traversal.strategy.optimization that implement TraversalStrategy Modifier and Type Class Description class
AdjacentToIncidentStrategy
This strategy looks for vertex- and value-emitting steps followed by aCountGlobalStep
and replaces the pattern with an edge- or property-emitting step followed by aCountGlobalStep
.class
ByModulatorOptimizationStrategy
This strategy looks for standard traversals in by-modulators and replaces them with more optimized traversals (e.g.class
CountStrategy
This strategy optimizes any occurrence ofCountGlobalStep
followed by anIsStep
.class
EarlyLimitStrategy
This strategy looks forRangeGlobalStep
s that can be moved further left in the traversal and thus be applied earlier.class
FilterRankingStrategy
FilterRankingStrategy
reorders filter- and order-steps according to their rank.class
IdentityRemovalStrategy
IdentityRemovalStrategy
looks forIdentityStep
instances and removes them.class
IncidentToAdjacentStrategy
This strategy looks for.outE().inV()
,.inE().outV()
and.bothE().otherV()
and replaces these step sequences with.out()
,.in()
or.both()
respectively.class
InlineFilterStrategy
This strategy analyzes filter-steps with child traversals that themselves are pure filters.class
LazyBarrierStrategy
LazyBarrierStrategy
is an OLTP-only strategy that automatically inserts aNoOpBarrierStep
after everyFlatMapStep
if neither path-tracking nor partial path-tracking is required, and the next step is not the traversal's last step or aBarrier
.class
MatchPredicateStrategy
MatchWhereStrategy
will fold any post-where()
step that maintains a traversal constraint intomatch()
.class
OrderLimitStrategy
OrderLimitStrategy
is an OLAP strategy that folds aRangeGlobalStep
into a precedingOrderGlobalStep
.class
PathProcessorStrategy
PathProcessStrategy
is 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.class
PathRetractionStrategy
class
ProductiveByStrategy
Takes an argument ofby()
and wraps itCoalesceStep
so that the result is either the initialTraversal
argument ornull
.class
RepeatUnrollStrategy
RepeatUnrollStrategy
is an OLTP-only strategy that unrolls anyRepeatStep
if it uses a constant number of loops (times(x)
) and doesn't emit intermittent elements. -
Uses of TraversalStrategy in org.apache.tinkerpop.gremlin.process.traversal.strategy.verification
Classes in org.apache.tinkerpop.gremlin.process.traversal.strategy.verification that implement TraversalStrategy Modifier and Type Class Description class
AbstractWarningVerificationStrategy
BaseTraversalStrategy
class that is configurable to throw warnings or exceptions.class
ComputerVerificationStrategy
class
EdgeLabelVerificationStrategy
EdgeLabelVerificationStrategy
does not allow edge traversal steps to have no label specified.class
LambdaRestrictionStrategy
LambdaRestrictionStrategy
does not allow lambdas to be used in aTraversal
.class
ReadOnlyStrategy
Detects steps marked withMutating
and throws anIllegalStateException
if one is found.class
ReservedKeysVerificationStrategy
This verification strategy detects property keys that should not be used by the traversal.class
StandardVerificationStrategy
-
Uses of TraversalStrategy in org.apache.tinkerpop.gremlin.process.traversal.util
Fields in org.apache.tinkerpop.gremlin.process.traversal.util with type parameters of type TraversalStrategy Modifier and Type Field Description protected List<org.javatuples.Pair<TraversalStrategy,Traversal.Admin<?,?>>>
TraversalExplanation. strategyTraversals
protected Set<TraversalStrategy<?>>
DefaultTraversalStrategies. traversalStrategies
Methods in org.apache.tinkerpop.gremlin.process.traversal.util with type parameters of type TraversalStrategy Modifier and Type Method Description static <A extends TraversalStrategy>
Iterator<A>BytecodeHelper. findStrategies(Bytecode bytecode, Class<A> clazz)
ParsesBytecode
to findTraversalStrategy
objects added in the source instructions.<T extends TraversalStrategy>
Optional<T>DefaultTraversalStrategies. getStrategy(Class<T> traversalStrategyClass)
Methods in org.apache.tinkerpop.gremlin.process.traversal.util that return types with arguments of type TraversalStrategy Modifier and Type Method Description List<org.javatuples.Pair<TraversalStrategy,Traversal.Admin<?,?>>>
ImmutableExplanation. getStrategyTraversals()
List<org.javatuples.Pair<TraversalStrategy,Traversal.Admin<?,?>>>
TraversalExplanation. getStrategyTraversals()
Get the list ofTraversalStrategy
applications.Iterator<TraversalStrategy<?>>
DefaultTraversalStrategies. iterator()
Iterator<TraversalStrategy<?>>
EmptyTraversalStrategies. iterator()
List<TraversalStrategy<?>>
DefaultTraversalStrategies. toList()
List<TraversalStrategy<?>>
EmptyTraversalStrategies. toList()
Methods in org.apache.tinkerpop.gremlin.process.traversal.util with parameters of type TraversalStrategy Modifier and Type Method Description TraversalStrategies
DefaultTraversalStrategies. addStrategies(TraversalStrategy<?>... strategies)
TraversalStrategies
EmptyTraversalStrategies. addStrategies(TraversalStrategy<?>... strategies)
Method parameters in org.apache.tinkerpop.gremlin.process.traversal.util with type arguments of type TraversalStrategy Modifier and Type Method Description static void
TraversalHelper. applySingleLevelStrategies(Traversal.Admin<?,?> parentTraversal, Traversal.Admin<?,?> childTraversal, Class<? extends TraversalStrategy> stopAfterStrategy)
Deprecated.As of release 3.5.2, not replaced as strategies are not applied in this fashion after 3.5.0 -
Uses of TraversalStrategy in org.apache.tinkerpop.gremlin.structure.io.binary.types
Methods in org.apache.tinkerpop.gremlin.structure.io.binary.types that return TraversalStrategy Modifier and Type Method Description protected TraversalStrategy
TraversalStrategySerializer. readValue(Buffer buffer, GraphBinaryReader context)
Methods in org.apache.tinkerpop.gremlin.structure.io.binary.types with parameters of type TraversalStrategy Modifier and Type Method Description protected void
TraversalStrategySerializer. writeValue(TraversalStrategy value, Buffer buffer, GraphBinaryWriter context)
-
Uses of TraversalStrategy in org.apache.tinkerpop.gremlin.structure.util
Methods in org.apache.tinkerpop.gremlin.structure.util with parameters of type TraversalStrategy Modifier and Type Method Description static String
StringFactory. traversalStrategyString(TraversalStrategy traversalStrategy)
-
Uses of TraversalStrategy in org.apache.tinkerpop.gremlin.tinkergraph.process.traversal.strategy.optimization
Classes in org.apache.tinkerpop.gremlin.tinkergraph.process.traversal.strategy.optimization that implement TraversalStrategy Modifier and Type Class Description class
TinkerGraphCountStrategy
This strategy will do a directTinkerHelper.getVertices(org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerVertex, org.apache.tinkerpop.gremlin.structure.Direction, java.lang.String...)
size call if the traversal is a count of the vertices and edges of the graph or a one-to-one map chain thereof.class
TinkerGraphStepStrategy
-