org.eigenbase.relopt.volcano
Class RuleQueue.RuleMatchImportanceComparator
java.lang.Object
org.eigenbase.relopt.volcano.RuleQueue.RuleMatchImportanceComparator
- All Implemented Interfaces:
- Comparator<VolcanoRuleMatch>
- Enclosing class:
- RuleQueue
private class RuleQueue.RuleMatchImportanceComparator
- extends Object
- implements Comparator<VolcanoRuleMatch>
Compares VolcanoRuleMatch
objects according to their importance.
Matches which are more important collate earlier. Ties are adjudicated by
comparing the id
s of the relational expressions
matched.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RuleQueue.RuleMatchImportanceComparator
private RuleQueue.RuleMatchImportanceComparator()
compare
public int compare(VolcanoRuleMatch match1,
VolcanoRuleMatch match2)
- Specified by:
compare
in interface Comparator<VolcanoRuleMatch>