Class ImmutableExplanation
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.process.traversal.util.AbstractExplanation
-
- org.apache.tinkerpop.gremlin.process.traversal.util.TraversalExplanation
-
- org.apache.tinkerpop.gremlin.process.traversal.util.ImmutableExplanation
-
- All Implemented Interfaces:
Serializable
public class ImmutableExplanation extends TraversalExplanation
A data-only representation of aTraversalExplanation
which doesn't re-calculate the "explanation" from the raw traversal data each time the explanation is displayed.- Author:
- Stephen Mallette (http://stephen.genoprime.com)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.tinkerpop.gremlin.process.traversal.util.TraversalExplanation
strategyTraversals, traversal
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 originalTraversal
used to create this explanation.protected String
getOriginalTraversalAsString()
List<org.javatuples.Pair<TraversalStrategy,Traversal.Admin<?,?>>>
getStrategyTraversals()
Get the list ofTraversalStrategy
applications.protected Stream<String>
getStrategyTraversalsAsString()
protected Stream<String>
getTraversalStepsAsString()
-
Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.util.AbstractExplanation
prettyPrint, prettyPrint, spacing, toString
-
-
-
-
Method Detail
-
getStrategyTraversals
public List<org.javatuples.Pair<TraversalStrategy,Traversal.Admin<?,?>>> getStrategyTraversals()
Description copied from class:TraversalExplanation
Get the list ofTraversalStrategy
applications. For strategy, the resultant mutatedTraversal
is provided.- Overrides:
getStrategyTraversals
in classTraversalExplanation
- Returns:
- the list of strategy/traversal pairs
-
getOriginalTraversal
public Traversal.Admin<?,?> getOriginalTraversal()
Description copied from class:TraversalExplanation
Get the originalTraversal
used to create this explanation.- Overrides:
getOriginalTraversal
in classTraversalExplanation
- Returns:
- the original traversal
-
asImmutable
public ImmutableExplanation asImmutable()
- Overrides:
asImmutable
in classTraversalExplanation
-
getStrategyTraversalsAsString
protected Stream<String> getStrategyTraversalsAsString()
- Overrides:
getStrategyTraversalsAsString
in classTraversalExplanation
-
getTraversalStepsAsString
protected Stream<String> getTraversalStepsAsString()
- Overrides:
getTraversalStepsAsString
in classAbstractExplanation
-
getOriginalTraversalAsString
protected String getOriginalTraversalAsString()
- Overrides:
getOriginalTraversalAsString
in classTraversalExplanation
-
getIntermediates
protected Stream<org.javatuples.Triplet<String,String,String>> getIntermediates()
Description copied from class:AbstractExplanation
First string is the traversal strategy, the second is the category and the third is the traversal representation at that point.- Overrides:
getIntermediates
in classTraversalExplanation
-
-