public interface LogicalPlanRewriteRule
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
It returns the rewrite rule name.
|
boolean |
isEligible(OverridableConf queryContext,
LogicalPlan plan)
This method checks if this rewrite rule can be applied to a given query plan.
|
LogicalPlan |
rewrite(OverridableConf queryContext,
LogicalPlan plan)
Updates a logical plan and returns an updated logical plan rewritten by this rule.
|
String getName()
boolean isEligible(OverridableConf queryContext, LogicalPlan plan)
plan - The plan to be checkedLogicalPlan rewrite(OverridableConf queryContext, LogicalPlan plan) throws PlanningException
plan - Input logical plan. It will not be modified.PlanningExceptionCopyright © 2015 Apache Software Foundation. All Rights Reserved.