public class ExprNodeGenericFuncEvaluator extends ExprNodeEvaluator<ExprNodeGenericFuncDesc>
expr, outputOI| Constructor and Description |
|---|
ExprNodeGenericFuncEvaluator(ExprNodeGenericFuncDesc expr) |
| 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 |
isStateful()
Return whether this node (or any children nodes) are stateful.
|
evaluate, evaluate, getExpr, getOutputOI, toStringpublic ExprNodeGenericFuncEvaluator(ExprNodeGenericFuncDesc expr) 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>protected Object _evaluate(Object row, int version) throws HiveException
ExprNodeEvaluator_evaluate in class ExprNodeEvaluator<ExprNodeGenericFuncDesc>HiveExceptionpublic Integer compare(Object row) throws HiveException
row - HiveExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.