public class PartExprEvalUtils extends Object
Constructor and Description |
---|
PartExprEvalUtils() |
Modifier and Type | Method and Description |
---|---|
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,
List<PrimitiveTypeInfo> partColumnTypeInfos) |
public static Object evalExprWithPart(ExprNodeDesc expr, Partition p, List<VirtualColumn> vcs, StructObjectInspector rowObjectInspector) throws HiveException
expr
- partSpec
- rowObjectInspector
- HiveException
public static ObjectPair<PrimitiveObjectInspector,ExprNodeEvaluator> prepareExpr(ExprNodeGenericFuncDesc expr, List<String> partNames, List<PrimitiveTypeInfo> partColumnTypeInfos) throws HiveException
HiveException
public static Object evaluateExprOnPart(ObjectPair<PrimitiveObjectInspector,ExprNodeEvaluator> pair, Object partColValues) throws HiveException
HiveException
Copyright © 2017 The Apache Software Foundation. All rights reserved.