org.apache.hadoop.hive.ql.plan
Class exprNodeFuncDesc

java.lang.Object
  extended by org.apache.hadoop.hive.ql.plan.exprNodeDesc
      extended by org.apache.hadoop.hive.ql.plan.exprNodeFuncDesc
All Implemented Interfaces:
Serializable, Node

public class exprNodeFuncDesc
extends exprNodeDesc
implements Serializable

The reason that we have to store UDFClass as well as UDFMethod is because UDFMethod might be declared in a parent class of UDFClass. As a result, UDFMethod.getDeclaringClass() may not work.

See Also:
Serialized Form

Constructor Summary
exprNodeFuncDesc()
           
exprNodeFuncDesc(String methodName, TypeInfo typeInfo, Class<? extends UDF> UDFClass, Method UDFMethod, List<exprNodeDesc> children)
           
 
Method Summary
 exprNodeDesc clone()
           
 List<exprNodeDesc> getChildExprs()
           
 List<exprNodeDesc> getChildren()
          Gets the vector of children nodes.
 List<String> getCols()
           
 String getExprString()
           
 String getMethodName()
           
 Class<? extends UDF> getUDFClass()
           
 Method getUDFMethod()
           
 boolean isSame(Object o)
           
 void setChildExprs(List<exprNodeDesc> children)
           
 void setMethodName(String methodName)
           
 void setUDFClass(Class<? extends UDF> UDFClass)
           
 void setUDFMethod(Method method)
           
 String toString()
           
 
Methods inherited from class org.apache.hadoop.hive.ql.plan.exprNodeDesc
getName, getTypeInfo, getTypeString, setTypeInfo
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

exprNodeFuncDesc

public exprNodeFuncDesc()

exprNodeFuncDesc

public exprNodeFuncDesc(String methodName,
                        TypeInfo typeInfo,
                        Class<? extends UDF> UDFClass,
                        Method UDFMethod,
                        List<exprNodeDesc> children)
Method Detail

getUDFClass

public Class<? extends UDF> getUDFClass()

setUDFClass

public void setUDFClass(Class<? extends UDF> UDFClass)

getUDFMethod

public Method getUDFMethod()

setUDFMethod

public void setUDFMethod(Method method)

getChildExprs

public List<exprNodeDesc> getChildExprs()

setChildExprs

public void setChildExprs(List<exprNodeDesc> children)

getChildren

public List<exprNodeDesc> getChildren()
Description copied from interface: Node
Gets the vector of children nodes. This is used in the graph walker algorithms.

Specified by:
getChildren in interface Node
Overrides:
getChildren in class exprNodeDesc
Returns:
Vector

toString

public String toString()
Overrides:
toString in class Object

getExprString

public String getExprString()
Overrides:
getExprString in class exprNodeDesc

getCols

public List<String> getCols()
Overrides:
getCols in class exprNodeDesc

getMethodName

public String getMethodName()

setMethodName

public void setMethodName(String methodName)

clone

public exprNodeDesc clone()
Specified by:
clone in class exprNodeDesc

isSame

public boolean isSame(Object o)
Specified by:
isSame in class exprNodeDesc


Copyright © 2009 The Apache Software Foundation