public class TraversalExplanation extends Object 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
toString()
has a pretty-print representation that is useful in the Gremlin Console.Constructor and Description |
---|
TraversalExplanation(Traversal.Admin<?,?> traversal) |
Modifier and Type | Method and Description |
---|---|
Traversal.Admin<?,?> |
getOriginalTraversal()
Get the original
Traversal used to create this explanation. |
List<<any>> |
getStrategyTraversals()
Get the list of
TraversalStrategy applications. |
String |
prettyPrint() |
String |
prettyPrint(int maxLineLength)
A pretty-print representation of the traversal explanation.
|
String |
toString() |
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 String prettyPrint()
Copyright © 2013–2016 Apache Software Foundation. All rights reserved.