org.modeshape.graph.query.optimize
Class CopyCriteria
java.lang.Object
org.modeshape.graph.query.optimize.CopyCriteria
- All Implemented Interfaces:
- OptimizerRule
@Immutable
public class CopyCriteria
- extends Object
- implements OptimizerRule
An optimizer rule
that copies SELECT nodes that apply to one side of a equi-join condition so that they
also apply to the other side fo the equi-join condition.
INSTANCE
public static final CopyCriteria INSTANCE
CopyCriteria
public CopyCriteria()
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()
getColumnsReferencedBy
public static Set<Column> getColumnsReferencedBy(Visitable visitable)
- Get the set of Column objects that represent those columns referenced by the visitable object.
- Parameters:
visitable
- the object to be visited
- Returns:
- the set of Column objects, with column names that always are the string-form of the
property name
; never null
Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.