org.apache.hadoop.hive.ql.optimizer.ppr
Class ExprProcFactory
java.lang.Object
org.apache.hadoop.hive.ql.optimizer.ppr.ExprProcFactory
public class ExprProcFactory
- extends Object
Expression processor factory for partition pruning. Each processor tries
to convert the expression subtree into a partition pruning expression.
This expression is then used to figure out whether a particular partition
should be scanned or not.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExprProcFactory
public ExprProcFactory()
getDefaultExprProcessor
public static NodeProcessor getDefaultExprProcessor()
getGenericFuncProcessor
public static NodeProcessor getGenericFuncProcessor()
getFieldProcessor
public static NodeProcessor getFieldProcessor()
getColumnProcessor
public static NodeProcessor getColumnProcessor()
genPruner
public static exprNodeDesc genPruner(String tabAlias,
exprNodeDesc pred,
boolean hasNonPartCols)
throws SemanticException
- Generates the partition pruner for the expression tree
- Parameters:
tabAlias
- The table alias of the partition table that is being considered for pruningpred
- The predicate from which the partition pruner needs to be generated
- Returns:
- hasNonPartCols returns true/false depending upon whether this pred has a non partition column
- Throws:
SemanticException
Copyright © 2009 The Apache Software Foundation