org.apache.hadoop.hive.ql.optimizer.ppr
Class OpProcFactory

java.lang.Object
  extended by org.apache.hadoop.hive.ql.optimizer.PrunerOperatorFactory
      extended by 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.


Nested Class Summary
static class OpProcFactory.FilterPPR
          Determines the partition pruner for the filter.
 
Nested classes/interfaces inherited from class org.apache.hadoop.hive.ql.optimizer.PrunerOperatorFactory
PrunerOperatorFactory.DefaultPruner, PrunerOperatorFactory.FilterPruner
 
Method Summary
static NodeProcessor getFilterProc()
           
 
Methods inherited from class org.apache.hadoop.hive.ql.optimizer.PrunerOperatorFactory
getDefaultProc
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFilterProc

public static NodeProcessor getFilterProc()


Copyright © 2014 The Apache Software Foundation. All rights reserved.