public class TraversalExplanation extends AbstractExplanation implements Serializable
Traversal
and, for each registered TraversalStrategy
, it creates a
mapping reflecting how each strategy alters the traversal. This is useful for understanding how each traversal
strategy mutates the traversal. This is useful in debugging and analysis of traversal compilation. The
AbstractExplanation.toString()
has a pretty-print representation that is useful in the Gremlin Console.Modifier and Type | Field and Description |
---|---|
protected List<org.javatuples.Pair<TraversalStrategy,Traversal.Admin<?,?>>> |
strategyTraversals |
protected Traversal.Admin<?,?> |
traversal |
Modifier | Constructor and Description |
---|---|
protected |
TraversalExplanation() |
|
TraversalExplanation(Traversal.Admin<?,?> traversal) |
Modifier and Type | Method and Description |
---|---|
ImmutableExplanation |
asImmutable() |
protected Stream<org.javatuples.Triplet<String,String,String>> |
getIntermediates()
First string is the traversal strategy, the second is the category and the third is the traversal
representation at that point.
|
Traversal.Admin<?,?> |
getOriginalTraversal()
Get the original
Traversal used to create this explanation. |
protected String |
getOriginalTraversalAsString() |
List<org.javatuples.Pair<TraversalStrategy,Traversal.Admin<?,?>>> |
getStrategyTraversals()
Get the list of
TraversalStrategy applications. |
protected Stream<String> |
getStrategyTraversalsAsString() |
getTraversalStepsAsString, prettyPrint, prettyPrint, spacing, toString
protected Traversal.Admin<?,?> traversal
protected List<org.javatuples.Pair<TraversalStrategy,Traversal.Admin<?,?>>> strategyTraversals
protected TraversalExplanation()
public TraversalExplanation(Traversal.Admin<?,?> traversal)
public List<org.javatuples.Pair<TraversalStrategy,Traversal.Admin<?,?>>> getStrategyTraversals()
TraversalStrategy
applications. For strategy, the resultant mutated Traversal
is provided.public Traversal.Admin<?,?> getOriginalTraversal()
Traversal
used to create this explanation.public ImmutableExplanation asImmutable()
protected Stream<String> getStrategyTraversalsAsString()
getStrategyTraversalsAsString
in class AbstractExplanation
protected String getOriginalTraversalAsString()
getOriginalTraversalAsString
in class AbstractExplanation
protected Stream<org.javatuples.Triplet<String,String,String>> getIntermediates()
AbstractExplanation
getIntermediates
in class AbstractExplanation
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.