Package org.apache.calcite.plan
Class ConventionTraitDef.ConversionData
- java.lang.Object
-
- org.apache.calcite.plan.ConventionTraitDef.ConversionData
-
- Enclosing class:
- ConventionTraitDef
private static final class ConventionTraitDef.ConversionData extends java.lang.Object
Workspace for converting from one convention to another.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) DirectedGraph<Convention,DefaultEdge>
conversionGraph
(package private) com.google.common.collect.Multimap<Pair<Convention,Convention>,ConverterRule>
mapArcToConverterRule
For a given source/target convention, there may be several possible conversion rules.private Graphs.FrozenGraph<Convention,DefaultEdge>
pathMap
-
Constructor Summary
Constructors Modifier Constructor Description private
ConversionData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private Graphs.FrozenGraph<Convention,DefaultEdge>
getPathMap()
java.util.List<java.util.List<Convention>>
getPaths(Convention fromConvention, Convention toConvention)
java.util.List<Convention>
getShortestPath(Convention fromConvention, Convention toConvention)
-
-
-
Field Detail
-
conversionGraph
final DirectedGraph<Convention,DefaultEdge> conversionGraph
-
mapArcToConverterRule
final com.google.common.collect.Multimap<Pair<Convention,Convention>,ConverterRule> mapArcToConverterRule
For a given source/target convention, there may be several possible conversion rules. MapsDefaultEdge
to a collection ofConverterRule
objects.
-
pathMap
private Graphs.FrozenGraph<Convention,DefaultEdge> pathMap
-
-
Method Detail
-
getPaths
public java.util.List<java.util.List<Convention>> getPaths(Convention fromConvention, Convention toConvention)
-
getPathMap
private Graphs.FrozenGraph<Convention,DefaultEdge> getPathMap()
-
getShortestPath
public java.util.List<Convention> getShortestPath(Convention fromConvention, Convention toConvention)
-
-