@Immutable public class ReplaceViews extends Object implements OptimizerRule
optimizer rulethat replaces any SOURCE nodes that happen to be
views. This rewriting changes all of the elements of the plan that reference the SOURCE and it's columns, including criteria, project nodes, etc.
For example, here is the portion of a plan that uses a single SOURCE that is defined to use a view.
... | SOURCE1This same SOURCE node is then replaced with the view's definition:
... | PROJECT with the list of columns being SELECTed | SELECT1 | One or more SELECT plan nodes that each have SELECT2 a single non-join constraint that are then all AND-ed | together SELECTn | SOURCE
|Constructor and Description|
|Modifier and Type||Method and Description|
Optimize the supplied plan using the supplied context, hints, and yet-to-be-run rules.
public static final ReplaceViews INSTANCE
public PlanNode execute(QueryContext context, PlanNode plan, LinkedList<OptimizerRule> ruleStack)
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.