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

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.FunctionInfo

public class FunctionInfo
extends Object

FunctionInfo.


Constructor Summary
FunctionInfo(boolean isNative, String displayName, GenericUDAFResolver genericUDAFResolver)
           
FunctionInfo(boolean isNative, String displayName, GenericUDF genericUDF)
           
FunctionInfo(boolean isNative, String displayName, GenericUDTF genericUDTF)
           
 
Method Summary
 String getDisplayName()
          Get the display name for this function.
 Class<?> getFunctionClass()
          Get the Class of the UDF.
 GenericUDAFResolver getGenericUDAFResolver()
          Get the GenericUDAFResolver object for the function.
 GenericUDF getGenericUDF()
          Get a new GenericUDF object for the function.
 GenericUDTF getGenericUDTF()
          Get a new GenericUDTF object for the function.
 boolean isGenericUDAF()
           
 boolean isGenericUDF()
           
 boolean isGenericUDTF()
           
 boolean isNative()
          Native functions cannot be unregistered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctionInfo

public FunctionInfo(boolean isNative,
                    String displayName,
                    GenericUDF genericUDF)

FunctionInfo

public FunctionInfo(boolean isNative,
                    String displayName,
                    GenericUDAFResolver genericUDAFResolver)

FunctionInfo

public FunctionInfo(boolean isNative,
                    String displayName,
                    GenericUDTF genericUDTF)
Method Detail

getGenericUDF

public GenericUDF getGenericUDF()
Get a new GenericUDF object for the function.


getGenericUDTF

public GenericUDTF getGenericUDTF()
Get a new GenericUDTF object for the function.


getGenericUDAFResolver

public GenericUDAFResolver getGenericUDAFResolver()
Get the GenericUDAFResolver object for the function.


getFunctionClass

public Class<?> getFunctionClass()
Get the Class of the UDF.


getDisplayName

public String getDisplayName()
Get the display name for this function. This should be transfered into exprNodeGenericUDFDesc, and will be used as the first parameter to GenericUDF.getDisplayName() call, instead of hard-coding the function name. This will solve the problem of displaying only one name when a udf is registered under 2 names.


isNative

public boolean isNative()
Native functions cannot be unregistered.


isGenericUDF

public boolean isGenericUDF()
Returns:
TRUE if the function is a GenericUDF

isGenericUDAF

public boolean isGenericUDAF()
Returns:
TRUE if the function is a GenericUDAF

isGenericUDTF

public boolean isGenericUDTF()
Returns:
TRUE if the function is a GenericUDTF


Copyright © 2013 The Apache Software Foundation