Package org.apache.calcite.plan.volcano
Interface VolcanoPlannerPhaseRuleMappingInitializer
-
- All Known Implementing Classes:
ChainedPhaseRuleMappingInitializer
public interface VolcanoPlannerPhaseRuleMappingInitializer
VolcanoPlannerPhaseRuleMappingInitializer describes an inteface for initializing the mapping ofVolcanoPlannerPhase
s to sets of rule descriptions.Note: Rule descriptions are obtained via
RelOptRule.toString()
. By default they are the class's simple name (e.g. class name sans package), unless the class is an inner class, in which case the default is the inner class's simple name. Some rules explicitly provide alternate descriptions by calling theRelOptRule(org.apache.calcite.plan.RelOptRuleOperand, String)
constructor.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
initialize(java.util.Map<VolcanoPlannerPhase,java.util.Set<java.lang.String>> phaseRuleMap)
Initializes aVolcanoPlannerPhase
-to-rule map.
-
-
-
Method Detail
-
initialize
void initialize(java.util.Map<VolcanoPlannerPhase,java.util.Set<java.lang.String>> phaseRuleMap)
Initializes aVolcanoPlannerPhase
-to-rule map. Rules are specified by description (see above). When this method is called, the map will already be pre-initialized with empty sets for each VolcanoPlannerPhase. Implementations must not return having added or removed keys from the map, although it is safe to temporarily add or remove keys.- Parameters:
phaseRuleMap
- aVolcanoPlannerPhase
-to-rule map
-
-