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<<any>> |
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<<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, toString
protected Traversal.Admin<?,?> traversal
protected List<<any>> strategyTraversals
protected 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 AbstractExplanation
protected String getOriginalTraversalAsString()
getOriginalTraversalAsString
in class AbstractExplanation
protected Stream<<any>> getIntermediates()
AbstractExplanation
getIntermediates
in class AbstractExplanation
Copyright © 2013–2021 Apache Software Foundation. All rights reserved.