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

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.FunctionInfo
All Implemented Interfaces:
CommonFunctionInfo

public class FunctionInfo
extends Object
implements CommonFunctionInfo

FunctionInfo.


Constructor Summary
FunctionInfo(boolean isNative, String displayName, GenericUDAFResolver genericUDAFResolver)
           
FunctionInfo(boolean isNative, String displayName, GenericUDF genericUDF)
           
FunctionInfo(boolean isNative, String displayName, GenericUDTF genericUDTF)
           
FunctionInfo(String displayName, Class<? extends TableFunctionResolver> tFnCls)
           
 
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 isInternalTableFunction()
          Internal table functions cannot be used in the language.
 boolean isNative()
          Native functions cannot be unregistered.
 boolean isTableFunction()
           
 
Methods inherited from class java.lang.Object
equals, 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)

FunctionInfo

public FunctionInfo(String displayName,
                    Class<? extends TableFunctionResolver> tFnCls)
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.

Specified by:
getFunctionClass in interface CommonFunctionInfo

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.


isInternalTableFunction

public boolean isInternalTableFunction()
Internal table functions cannot be used in the language. WindowingTableFunction


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

isTableFunction

public boolean isTableFunction()
Returns:
TRUE if the function is a Table Function


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