@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 |
populateIndexingRules(LinkedList<OptimizerRule> ruleStack,
PlanHints hints)
Method that is used to add the indexing rules to the rule stack.
|
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)
Optimizer
protected void populateRuleStack(LinkedList<OptimizerRule> ruleStack, PlanHints hints)
ruleStack
- the stack where the rules should be placed; never nullhints
- the plan hintsprotected void populateIndexingRules(LinkedList<OptimizerRule> ruleStack, PlanHints hints)
AddIndexes
rule.ruleStack
- the stack where the rules should be placed; never nullhints
- the plan hintsCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.