org.apache.hadoop.hive.ql.exec
Class ExprNodeGenericFuncEvaluator

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.ExprNodeEvaluator<ExprNodeGenericFuncDesc>
      extended by org.apache.hadoop.hive.ql.exec.ExprNodeGenericFuncEvaluator

public class ExprNodeGenericFuncEvaluator
extends ExprNodeEvaluator<ExprNodeGenericFuncDesc>

ExprNodeGenericFuncEvaluator.


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.
 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.
 
Methods inherited from class org.apache.hadoop.hive.ql.exec.ExprNodeEvaluator
evaluate, getExpr, getOutputOI
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExprNodeGenericFuncEvaluator

public ExprNodeGenericFuncEvaluator(ExprNodeGenericFuncDesc expr)
                             throws HiveException
Throws:
HiveException
Method Detail

initialize

public ObjectInspector initialize(ObjectInspector rowInspector)
                           throws HiveException
Description copied from class: ExprNodeEvaluator
Initialize should be called once and only once. Return the ObjectInspector for the return value, given the rowInspector.

Specified by:
initialize in class ExprNodeEvaluator<ExprNodeGenericFuncDesc>
Throws:
HiveException

isDeterministic

public boolean isDeterministic()
Description copied from class: ExprNodeEvaluator
Return whether this node (and all children nodes) are deterministic.

Overrides:
isDeterministic in class ExprNodeEvaluator<ExprNodeGenericFuncDesc>

getChildren

public ExprNodeEvaluator[] getChildren()
Description copied from class: ExprNodeEvaluator
Return child evaluators if exist

Overrides:
getChildren in class ExprNodeEvaluator<ExprNodeGenericFuncDesc>

isStateful

public boolean isStateful()
Description copied from class: ExprNodeEvaluator
Return whether this node (or any children nodes) are stateful.

Overrides:
isStateful in class ExprNodeEvaluator<ExprNodeGenericFuncDesc>

compare

public Integer compare(Object row)
                throws HiveException
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. If the genericUDF is not a base comparison, or there is an error executing the comparison, it returns null.

Parameters:
row -
Returns:
the compare results
Throws:
HiveException


Copyright © 2014 The Apache Software Foundation. All rights reserved.