org.modeshape.jcr.query.optimize
Class RewritePseudoColumns
java.lang.Object
org.modeshape.jcr.query.optimize.RewritePseudoColumns
- All Implemented Interfaces:
- OptimizerRule
@Immutable
public class RewritePseudoColumns
- extends Object
- implements OptimizerRule
An optimizer rule
that moves up higher in the plan any variable name
property to the node immediately under a dependent query
node.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final RewritePseudoColumns INSTANCE
RewritePseudoColumns
public RewritePseudoColumns()
execute
public PlanNode execute(QueryContext context,
PlanNode plan,
LinkedList<OptimizerRule> ruleStack)
- Description copied from interface:
OptimizerRule
- Optimize the supplied plan using the supplied context, hints, and yet-to-be-run rules.
- Specified by:
execute
in interface OptimizerRule
- Parameters:
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 null
- Returns:
- the optimized plan; never null
rewrite
protected JoinCondition rewrite(QueryContext context,
JoinCondition condition)
rewrite
protected Constraint rewrite(QueryContext context,
Constraint constraint)
rewrite
protected DynamicOperand rewrite(QueryContext context,
DynamicOperand operand)
Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.