public class PartitionFilterOptimizer.PartitionFilterPushDownTransformer extends Transformer
| Modifier and Type | Field and Description |
|---|---|
protected OperatorSubPlan |
subPlan |
| Constructor and Description |
|---|
PartitionFilterPushDownTransformer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(OperatorPlan matched)
check if the transform should be done.
|
protected List<String> |
getMappedKeys(String[] partitionKeys)
The partition keys in the argument are as reported by
LoadMetadata#getPartitionKeys(String, org.apache.hadoop.conf.Configuration). |
OperatorPlan |
reportChanges()
Report what parts of the tree were transformed.
|
protected void |
setupColNameMaps() |
void |
transform(OperatorPlan matched)
Transform the tree
|
protected void |
updateMappedColNames(Expression expr) |
protected OperatorSubPlan subPlan
public boolean check(OperatorPlan matched) throws FrontendException
Transformercheck in class Transformermatched - the sub-set of the plan that matches the pattern. This
subset has the same graph as the pattern, but the operators
point to the same objects as the plan to be matched.FrontendExceptionpublic OperatorPlan reportChanges()
TransformerreportChanges in class Transformerpublic void transform(OperatorPlan matched) throws FrontendException
Transformertransform in class Transformermatched - the sub-set of the plan that matches the pattern. This
subset has the same graph as the pattern, but the operators
point to the same objects as the plan to be matched.FrontendExceptionprotected void updateMappedColNames(Expression expr)
protected List<String> getMappedKeys(String[] partitionKeys)
LoadMetadata#getPartitionKeys(String, org.apache.hadoop.conf.Configuration).
The user may have renamed these by providing a schema with different names
in the load statement - this method will replace the former names with
the latter names.partitionKeys - protected void setupColNameMaps()
throws FrontendException
FrontendExceptionCopyright © 2007-2017 The Apache Software Foundation