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 aTraversalExplanationwhich 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.TraversalExplanationstrategyTraversals, traversal
 
- 
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableExplanationasImmutable()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 originalTraversalused to create this explanation.protected StringgetOriginalTraversalAsString()List<org.javatuples.Pair<TraversalStrategy,Traversal.Admin<?,?>>>getStrategyTraversals()Get the list ofTraversalStrategyapplications.protected Stream<String>getStrategyTraversalsAsString()protected Stream<String>getTraversalStepsAsString()- 
Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.util.AbstractExplanationprettyPrint, prettyPrint, spacing, toString
 
- 
 
- 
- 
- 
Method Detail- 
getStrategyTraversalspublic List<org.javatuples.Pair<TraversalStrategy,Traversal.Admin<?,?>>> getStrategyTraversals() Description copied from class:TraversalExplanationGet the list ofTraversalStrategyapplications. For strategy, the resultant mutatedTraversalis provided.- Overrides:
- getStrategyTraversalsin class- TraversalExplanation
- Returns:
- the list of strategy/traversal pairs
 
 - 
getOriginalTraversalpublic Traversal.Admin<?,?> getOriginalTraversal() Description copied from class:TraversalExplanationGet the originalTraversalused to create this explanation.- Overrides:
- getOriginalTraversalin class- TraversalExplanation
- Returns:
- the original traversal
 
 - 
asImmutablepublic ImmutableExplanation asImmutable() - Overrides:
- asImmutablein class- TraversalExplanation
 
 - 
getStrategyTraversalsAsStringprotected Stream<String> getStrategyTraversalsAsString() - Overrides:
- getStrategyTraversalsAsStringin class- TraversalExplanation
 
 - 
getTraversalStepsAsStringprotected Stream<String> getTraversalStepsAsString() - Overrides:
- getTraversalStepsAsStringin class- AbstractExplanation
 
 - 
getOriginalTraversalAsStringprotected String getOriginalTraversalAsString() - Overrides:
- getOriginalTraversalAsStringin class- TraversalExplanation
 
 - 
getIntermediatesprotected Stream<org.javatuples.Triplet<String,String,String>> getIntermediates() Description copied from class:AbstractExplanationFirst string is the traversal strategy, the second is the category and the third is the traversal representation at that point.- Overrides:
- getIntermediatesin class- TraversalExplanation
 
 
- 
 
-