Modifier and Type | Method and Description |
---|---|
default GraphTraversalSource |
GraphProvider.traversal(Graph graph,
TraversalStrategy... strategies)
Create a
GraphTraversalSource from a Graph instance. |
Modifier and Type | Interface and Description |
---|---|
interface |
TraversalStrategy<S extends TraversalStrategy>
A
TraversalStrategy defines a particular atomic operation for mutating a Traversal prior to its evaluation. |
Modifier and Type | Interface and 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.VendorOptimizationStrategy
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.
|
Modifier and Type | Field and Description |
---|---|
static List<Class<? extends TraversalStrategy>> |
TraversalStrategies.STRATEGY_CATEGORIES |
Modifier and Type | Method and Description |
---|---|
List<TraversalStrategy> |
TraversalSource.getStrategies() |
default List<Class<? extends TraversalStrategy>> |
TraversalEngine.Builder.getWithoutStrategies()
A list of
TraversalStrategy classes that should not be applied to the ultimate Traversal . |
default List<TraversalStrategy> |
TraversalEngine.Builder.getWithStrategies()
A list of
TraversalStrategy instances that should be applied to the ultimate Traversal . |
static List<TraversalStrategy<?>> |
TraversalStrategies.sortStrategies(List<TraversalStrategy<?>> strategies)
Sorts the list of provided strategies such that the
applyPost()
and applyPrior() dependencies are respected. |
List<TraversalStrategy<?>> |
TraversalStrategies.toList()
Return all the
TraversalStrategy singleton instances associated with this TraversalStrategies . |
Modifier and Type | Method and Description |
---|---|
TraversalStrategies |
TraversalStrategies.addStrategies(TraversalStrategy<?>... strategies)
Add all the provided
TraversalStrategy instances to the current collection. |
TraversalSource.Builder |
TraversalSource.Builder.with(TraversalStrategy strategy) |
Modifier and Type | Method and Description |
---|---|
default int |
TraversalStrategy.compareTo(Class<? extends TraversalStrategy> otherTraversalCategory) |
default int |
TraversalStrategy.DecorationStrategy.compareTo(Class<? extends TraversalStrategy> otherTraversalCategory) |
default int |
TraversalStrategy.OptimizationStrategy.compareTo(Class<? extends TraversalStrategy> otherTraversalCategory) |
default int |
TraversalStrategy.VendorOptimizationStrategy.compareTo(Class<? extends TraversalStrategy> otherTraversalCategory) |
default int |
TraversalStrategy.FinalizationStrategy.compareTo(Class<? extends TraversalStrategy> otherTraversalCategory) |
default int |
TraversalStrategy.VerificationStrategy.compareTo(Class<? extends TraversalStrategy> otherTraversalCategory) |
static List<TraversalStrategy<?>> |
TraversalStrategies.sortStrategies(List<TraversalStrategy<?>> strategies)
Sorts the list of provided strategies such that the
applyPost()
and applyPrior() 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) |
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) |
TraversalSource.Builder |
TraversalSource.Builder.without(Class<? extends TraversalStrategy> strategyClass) |
Modifier and Type | Method and Description |
---|---|
List<TraversalStrategy> |
GraphTraversalSource.getStrategies() |
Modifier and Type | Method and Description |
---|---|
GraphTraversalSource.Builder |
GraphTraversalSource.Builder.with(TraversalStrategy strategy) |
Modifier and Type | Method and Description |
---|---|
TraversalSource.Builder |
GraphTraversalSource.Builder.without(Class<? extends TraversalStrategy> strategyClass) |
Modifier and Type | Class and Description |
---|---|
static class |
ComputerTraversalEngine.ComputerResultStrategy |
Modifier and Type | Method and Description |
---|---|
List<TraversalStrategy> |
ComputerTraversalEngine.Builder.getWithStrategies() |
Modifier and Type | Class and Description |
---|---|
class |
AbstractTraversalStrategy<S extends TraversalStrategy> |
Modifier and Type | Class and Description |
---|---|
class |
AbstractTraversalStrategy<S extends TraversalStrategy> |
Modifier and Type | Class and Description |
---|---|
class |
ConjunctionStrategy
|
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 when
Mutating steps are encountered and successfully executed. |
class |
PartitionStrategy |
class |
SubgraphStrategy
This
TraversalStrategy provides a way to limit the view of a Traversal . |
Modifier and Type | Class and Description |
---|---|
class |
EngineDependentStrategy
A
Step can extend EngineDependent . |
class |
LazyBarrierStrategy |
class |
MatchAlgorithmStrategy |
class |
ProfileStrategy |
Modifier and Type | Class and Description |
---|---|
class |
AdjacentToIncidentStrategy
This strategy looks for vertex- and value-emitting steps followed by a
CountGlobalStep and replaces the
pattern with an edge- or property-emitting step followed by a CountGlobalStep . |
class |
DedupBijectionStrategy
DedupBijectionStrategy does deduplication prior to a non-mutating bijective step if there is no
by() -modulation on dedup() . |
class |
IdentityRemovalStrategy
IdentityRemovalStrategy looks for
IdentityStep 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 |
MatchPredicateStrategy
MatchWhereStrategy will fold any post-
where() step that maintains a traversal constraint into match() . |
class |
RangeByIsCountStrategy
This strategy optimizes any occurrence of
CountGlobalStep followed by an IsStep . |
Modifier and Type | Class and Description |
---|---|
class |
ComputerVerificationStrategy |
class |
LambdaRestrictionStrategy
LambdaRestrictionStrategy does not allow lambdas to be used in a
Traversal . |
class |
ReadOnlyStrategy
Detects steps marked with
Mutating and throws an IllegalStateException if one is found. |
Modifier and Type | Field and Description |
---|---|
protected List<TraversalStrategy<?>> |
DefaultTraversalStrategies.traversalStrategies |
Modifier and Type | Method and Description |
---|---|
List<TraversalStrategy<?>> |
EmptyTraversalStrategies.toList() |
List<TraversalStrategy<?>> |
DefaultTraversalStrategies.toList() |
Modifier and Type | Method and Description |
---|---|
TraversalStrategies |
EmptyTraversalStrategies.addStrategies(TraversalStrategy<?>... strategies) |
TraversalStrategies |
DefaultTraversalStrategies.addStrategies(TraversalStrategy<?>... strategies) |
Modifier and Type | Method and Description |
---|---|
static String |
StringFactory.traversalStrategyString(TraversalStrategy traversalStrategy) |
Modifier and Type | Class and Description |
---|---|
class |
TinkerGraphStepStrategy |
Copyright © 2013–2015 Apache Software Foundation. All rights reserved.