Package org.apache.calcite.plan.volcano
Class RuleQueue
java.lang.Object
org.apache.calcite.plan.volcano.RuleQueue
A data structure that manages rule matches for RuleDriver.
Different RuleDriver requires different ways to pop matches,
thus different ways to store rule matches that are not called.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
addMatch
(org.apache.calcite.plan.volcano.VolcanoRuleMatch match) Add a RuleMatch into the queue.abstract boolean
clear()
clear this rule queue.protected boolean
skipMatch
(org.apache.calcite.plan.volcano.VolcanoRuleMatch match) Returns whether to skip a match.
-
Field Details
-
planner
-
-
Constructor Details
-
RuleQueue
-
-
Method Details
-
addMatch
public abstract void addMatch(org.apache.calcite.plan.volcano.VolcanoRuleMatch match) Add a RuleMatch into the queue.- Parameters:
match
- rule match to add
-
clear
public abstract boolean clear()clear this rule queue. The return value indicates whether the rule queue was empty before clear.- Returns:
- true if the rule queue was not empty
-
skipMatch
protected boolean skipMatch(org.apache.calcite.plan.volcano.VolcanoRuleMatch match) Returns whether to skip a match. This happens if any of theRelNode
s have importance zero.
-