@Immutable public class RuleBasedOptimizer extends Object implements Optimizer
populateRuleStack(LinkedList, PlanHints) method to define the stack of rules they'd like to use, including the use of
custom rules.| Constructor and Description |
|---|
RuleBasedOptimizer() |
| Modifier and Type | Method and Description |
|---|---|
PlanNode |
optimize(QueryContext context,
PlanNode plan)
Optimize the supplied query plan and produce an executable processor plan.
|
protected void |
populateRuleStack(LinkedList<OptimizerRule> ruleStack,
PlanHints hints)
Method that is used to create the initial rule stack.
|
public PlanNode optimize(QueryContext context, PlanNode plan)
Optimizerprotected void populateRuleStack(LinkedList<OptimizerRule> ruleStack, PlanHints hints)
ruleStack - the stack where the rules should be placed; never nullhints - the plan hintsCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.