@Immutable public class CopyCriteria extends Object implements OptimizerRule
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.Modifier and Type | Field and Description |
---|---|
static CopyCriteria |
INSTANCE |
Constructor and Description |
---|
CopyCriteria() |
Modifier and Type | Method and Description |
---|---|
protected PlanNode |
copySelectNode(QueryContext context,
PlanNode selectNode,
SelectorName selectorName,
String propertyName,
SelectorName copySelectorName,
String copyPropertyName) |
protected void |
copySelectNodes(QueryContext context,
PlanNode fromJoined,
PlanNode toJoined) |
PlanNode |
execute(QueryContext context,
PlanNode plan,
LinkedList<OptimizerRule> ruleStack)
Optimize the supplied plan using the supplied context, hints, and yet-to-be-run rules.
|
static Set<Column> |
getColumnsReferencedBy(Visitable visitable)
Get the set of Column objects that represent those columns referenced by the visitable object.
|
String |
toString() |
public static final CopyCriteria 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 void copySelectNodes(QueryContext context, PlanNode fromJoined, PlanNode toJoined)
protected PlanNode copySelectNode(QueryContext context, PlanNode selectNode, SelectorName selectorName, String propertyName, SelectorName copySelectorName, String copyPropertyName)
public static Set<Column> getColumnsReferencedBy(Visitable visitable)
visitable
- the object to be visitedproperty name
; never nullCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.