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, toString
public ExprNodeGenericFuncEvaluator(ExprNodeGenericFuncDesc expr) throws HiveException
HiveException
public ObjectInspector initialize(ObjectInspector rowInspector) throws HiveException
ExprNodeEvaluator
initialize
in class ExprNodeEvaluator<ExprNodeGenericFuncDesc>
HiveException
public boolean isDeterministic()
ExprNodeEvaluator
isDeterministic
in class ExprNodeEvaluator<ExprNodeGenericFuncDesc>
public ExprNodeEvaluator[] getChildren()
ExprNodeEvaluator
getChildren
in class ExprNodeEvaluator<ExprNodeGenericFuncDesc>
public boolean isStateful()
ExprNodeEvaluator
isStateful
in class ExprNodeEvaluator<ExprNodeGenericFuncDesc>
protected Object _evaluate(Object row, int version) throws HiveException
ExprNodeEvaluator
_evaluate
in class ExprNodeEvaluator<ExprNodeGenericFuncDesc>
HiveException
public Integer compare(Object row) throws HiveException
row
- HiveException
Copyright © 2017 The Apache Software Foundation. All rights reserved.