public class ExprNodeGenericFuncEvaluator extends ExprNodeEvaluator<ExprNodeGenericFuncDesc>
conf, expr, outputOI| Constructor and Description |
|---|
ExprNodeGenericFuncEvaluator(ExprNodeGenericFuncDesc expr,
org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
_evaluate(Object row,
int version)
Evaluate value
|
Integer |
compare(Object row)
If the genericUDF is a base comparison, it returns an integer based on the result of comparing
the two sides of the UDF, like the compareTo method in Comparable.
|
ExprNodeEvaluator[] |
getChildren()
Return child evaluators if exist
|
ObjectInspector |
initialize(ObjectInspector rowInspector)
Initialize should be called once and only once.
|
boolean |
isDeterministic()
Return whether this node (and all children nodes) are deterministic.
|
boolean |
isRuntimeConstant()
Return whether this node (or any children nodes) are runtime constants.
|
boolean |
isStateful()
Return whether this node (or any children nodes) are stateful.
|
evaluate, evaluate, getConf, getExpr, getOutputOI, isConsistentWithinQuery, setConf, toStringpublic ExprNodeGenericFuncEvaluator(ExprNodeGenericFuncDesc expr, org.apache.hadoop.conf.Configuration conf) throws HiveException
HiveExceptionpublic ObjectInspector initialize(ObjectInspector rowInspector) throws HiveException
ExprNodeEvaluatorinitialize in class ExprNodeEvaluator<ExprNodeGenericFuncDesc>HiveExceptionpublic boolean isDeterministic()
ExprNodeEvaluatorisDeterministic in class ExprNodeEvaluator<ExprNodeGenericFuncDesc>public ExprNodeEvaluator[] getChildren()
ExprNodeEvaluatorgetChildren in class ExprNodeEvaluator<ExprNodeGenericFuncDesc>public boolean isStateful()
ExprNodeEvaluatorisStateful in class ExprNodeEvaluator<ExprNodeGenericFuncDesc>public boolean isRuntimeConstant()
ExprNodeEvaluatorisRuntimeConstant in class ExprNodeEvaluator<ExprNodeGenericFuncDesc>protected Object _evaluate(Object row, int version) throws HiveException
ExprNodeEvaluator_evaluate in class ExprNodeEvaluator<ExprNodeGenericFuncDesc>HiveExceptionpublic Integer compare(Object row) throws HiveException
row - HiveExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.