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 | Constructor and Description |
|---|---|
protected |
TraversalExplanation() |
|
TraversalExplanation(Traversal.Admin<?,?> traversal) |
| Modifier and Type | Method and Description |
|---|---|
ImmutableExplanation |
asImmutable() |
protected Stream<<any>> |
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<<any>> |
getStrategyTraversals()
Get the list of
TraversalStrategy applications. |
protected Stream<String> |
getStrategyTraversalsAsString() |
getTraversalStepsAsString, prettyPrint, prettyPrint, spacing, toStringprotected TraversalExplanation()
public TraversalExplanation(Traversal.Admin<?,?> traversal)
public List<<any>> 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 AbstractExplanationprotected String getOriginalTraversalAsString()
getOriginalTraversalAsString in class AbstractExplanationprotected Stream<<any>> getIntermediates()
AbstractExplanationgetIntermediates in class AbstractExplanationCopyright © 2013–2019 Apache Software Foundation. All rights reserved.