org.apache.hadoop.hive.ql.optimizer.ppr
Class OpProcFactory
java.lang.Object
org.apache.hadoop.hive.ql.optimizer.PrunerOperatorFactory
org.apache.hadoop.hive.ql.optimizer.ppr.OpProcFactory
public final class OpProcFactory
- extends PrunerOperatorFactory
Operator factory for partition pruning processing of operator graph We find
all the filter operators that appear just beneath the table scan operators.
We then pass the filter to the partition pruner to construct a pruner for
that table alias and store a mapping from the table scan operator to that
pruner. We call that pruner later during plan generation.
Refactor:
Move main logic to PrunerOperatorFactory. OpProcFactory extends it to reuse logic.
Any other pruner can reuse it by creating a class extending from PrunerOperatorFactory.
Only specific logic is in generatePredicate(..) which is in its own class like OpProcFactory.
getFilterProc
public static NodeProcessor getFilterProc()
Copyright © 2014 The Apache Software Foundation. All rights reserved.