public class PartitionedTableRewriter extends Object implements LogicalPlanRewriteRule
| Constructor and Description |
|---|
PartitionedTableRewriter() |
| Modifier and Type | Method and Description |
|---|---|
static Tuple |
buildTupleFromPartitionPath(Schema partitionColumnSchema,
org.apache.hadoop.fs.Path partitionPath,
boolean beNullIfFile)
Take a look at a column partition path.
|
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.
|
public String getName()
LogicalPlanRewriteRulegetName in interface LogicalPlanRewriteRulepublic boolean isEligible(OverridableConf queryContext, LogicalPlan plan)
LogicalPlanRewriteRuleisEligible in interface LogicalPlanRewriteRuleplan - The plan to be checkedpublic LogicalPlan rewrite(OverridableConf queryContext, LogicalPlan plan) throws PlanningException
LogicalPlanRewriteRulerewrite in interface LogicalPlanRewriteRuleplan - Input logical plan. It will not be modified.PlanningExceptionpublic static Tuple buildTupleFromPartitionPath(Schema partitionColumnSchema, org.apache.hadoop.fs.Path partitionPath, boolean beNullIfFile)
partitionColumnSchema - The partition column schemapartitionPath - The partition pathbeNullIfFile - If true, this method returns NULL when a given path is a file.Copyright © 2015 Apache Software Foundation. All Rights Reserved.