|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.ql.exec.ExprNodeEvaluator
org.apache.hadoop.hive.ql.exec.ExprNodeGenericFuncEvaluator
public class ExprNodeGenericFuncEvaluator
ExprNodeGenericFuncEvaluator.
Field Summary | |
---|---|
protected ExprNodeGenericFuncDesc |
expr
|
Constructor Summary | |
---|---|
ExprNodeGenericFuncEvaluator(ExprNodeGenericFuncDesc expr)
|
Method Summary | |
---|---|
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. |
Object |
evaluate(Object row)
Evaluate the expression given the row. |
ObjectInspector |
initialize(ObjectInspector rowInspector)
Initialize should be called once and only once. |
boolean |
isDeterministic()
Return whether this node (and all children nodes) are deterministic. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ExprNodeGenericFuncDesc expr
Constructor Detail |
---|
public ExprNodeGenericFuncEvaluator(ExprNodeGenericFuncDesc expr)
Method Detail |
---|
public ObjectInspector initialize(ObjectInspector rowInspector) throws HiveException
ExprNodeEvaluator
initialize
in class ExprNodeEvaluator
HiveException
public boolean isDeterministic()
ExprNodeEvaluator
isDeterministic
in class ExprNodeEvaluator
public Object evaluate(Object row) throws HiveException
ExprNodeEvaluator
evaluate
in class ExprNodeEvaluator
HiveException
public Integer compare(Object row) throws HiveException
row
-
HiveException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |