@Immutable public class RewritePathAndNameCriteria extends Object implements OptimizerRule
optimizer rule
that rewrites Constraint trees, moving path-, name-, or depth-oriented criteria to the
left-most parts of the constraint tree.Modifier and Type | Field and Description |
---|---|
static RewritePathAndNameCriteria |
INSTANCE |
Constructor and Description |
---|
RewritePathAndNameCriteria() |
Modifier and Type | Method and Description |
---|---|
PlanNode |
execute(QueryContext context,
PlanNode plan,
LinkedList<OptimizerRule> ruleStack)
Optimize the supplied plan using the supplied context, hints, and yet-to-be-run rules.
|
protected boolean |
isPathOriented(DynamicOperand op) |
protected Constraint |
rewriteCriteria(QueryContext context,
Constraint constraint) |
String |
toString() |
public static final RewritePathAndNameCriteria INSTANCE
public PlanNode execute(QueryContext context, PlanNode plan, LinkedList<OptimizerRule> ruleStack)
OptimizerRule
execute
in interface OptimizerRule
context
- the context in which the query is being optimized; never nullplan
- the plan to be optimized; never nullruleStack
- the stack of rules that will be run after this rule; never nullprotected Constraint rewriteCriteria(QueryContext context, Constraint constraint)
protected boolean isPathOriented(DynamicOperand op)
Copyright © 2008-2015 JBoss, a division of Red Hat. All Rights Reserved.