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

java.lang.Object
  extended by org.apache.hadoop.hive.ql.optimizer.ppr.PartExprEvalUtils

public class PartExprEvalUtils
extends Object


Constructor Summary
PartExprEvalUtils()
           
 
Method Summary
static Object evalExprWithPart(ExprNodeDesc expr, Partition p, List<VirtualColumn> vcs, StructObjectInspector rowObjectInspector)
          Evaluate expression with partition columns
static Object evaluateExprOnPart(ObjectPair<PrimitiveObjectInspector,ExprNodeEvaluator> pair, Object partColValues)
           
static ObjectPair<PrimitiveObjectInspector,ExprNodeEvaluator> prepareExpr(ExprNodeGenericFuncDesc expr, List<String> partNames)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartExprEvalUtils

public PartExprEvalUtils()
Method Detail

evalExprWithPart

public static Object evalExprWithPart(ExprNodeDesc expr,
                                      Partition p,
                                      List<VirtualColumn> vcs,
                                      StructObjectInspector rowObjectInspector)
                               throws HiveException
Evaluate expression with partition columns

Parameters:
expr -
partSpec -
rowObjectInspector -
Returns:
value returned by the expression
Throws:
HiveException

prepareExpr

public static ObjectPair<PrimitiveObjectInspector,ExprNodeEvaluator> prepareExpr(ExprNodeGenericFuncDesc expr,
                                                                                 List<String> partNames)
                                                                          throws HiveException
Throws:
HiveException

evaluateExprOnPart

public static Object evaluateExprOnPart(ObjectPair<PrimitiveObjectInspector,ExprNodeEvaluator> pair,
                                        Object partColValues)
                                 throws HiveException
Throws:
HiveException


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