org.modeshape.graph.query.optimize
Class ReplaceAliases
java.lang.Object
org.modeshape.graph.query.optimize.ReplaceAliases
- All Implemented Interfaces:
- OptimizerRule
@Immutable
public class ReplaceAliases
- extends Object
- implements OptimizerRule
An optimizer rule
that changes any nodes that make use of an alias for a SOURCE, including columns,
including criteria, project nodes, etc. This behavior is similar to what ReplaceViews
does with views that are given
aliases.
INSTANCE
public static final ReplaceAliases INSTANCE
ReplaceAliases
public ReplaceAliases()
execute
public PlanNode execute(QueryContext context,
PlanNode plan,
LinkedList<OptimizerRule> ruleStack)
- 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
- See Also:
OptimizerRule.execute(org.modeshape.graph.query.QueryContext,
org.modeshape.graph.query.plan.PlanNode, java.util.LinkedList)
toString
public String toString()
-
- Overrides:
toString
in class Object
- See Also:
Object.toString()
Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.