Package org.apache.calcite.plan.volcano
Class RuleQueue.RuleMatchImportanceComparator
- java.lang.Object
-
- org.apache.calcite.plan.volcano.RuleQueue.RuleMatchImportanceComparator
-
- All Implemented Interfaces:
java.util.Comparator<VolcanoRuleMatch>
- Enclosing class:
- RuleQueue
private static class RuleQueue.RuleMatchImportanceComparator extends java.lang.Object implements java.util.Comparator<VolcanoRuleMatch>
ComparesVolcanoRuleMatch
objects according to their importance. Matches which are more important collate earlier. Ties are adjudicated by comparing theid
s of the relational expressions matched.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
RuleMatchImportanceComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(VolcanoRuleMatch match1, VolcanoRuleMatch match2)
-
-
-
Method Detail
-
compare
public int compare(VolcanoRuleMatch match1, VolcanoRuleMatch match2)
- Specified by:
compare
in interfacejava.util.Comparator<VolcanoRuleMatch>
-
-