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, toString
public ExprNodeGenericFuncEvaluator(ExprNodeGenericFuncDesc expr, org.apache.hadoop.conf.Configuration conf) 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>
public boolean isRuntimeConstant()
ExprNodeEvaluator
isRuntimeConstant
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 © 2022 The Apache Software Foundation. All rights reserved.