public class FunctionInfo extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FunctionInfo.FunctionResource |
static class |
FunctionInfo.FunctionType |
Constructor and Description |
---|
FunctionInfo(boolean isNative,
String displayName,
Class<? extends TableFunctionResolver> tFnCls,
FunctionInfo.FunctionResource... resources) |
FunctionInfo(boolean isNative,
String displayName,
GenericUDAFResolver genericUDAFResolver,
FunctionInfo.FunctionResource... resources) |
FunctionInfo(boolean isNative,
String displayName,
GenericUDF genericUDF,
FunctionInfo.FunctionResource... resources) |
FunctionInfo(boolean isNative,
String displayName,
GenericUDTF genericUDTF,
FunctionInfo.FunctionResource... resources) |
FunctionInfo(String displayName,
String className,
FunctionInfo.FunctionResource... resources) |
Modifier and Type | Method and Description |
---|---|
void |
discarded() |
String |
getClassName() |
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.
|
FunctionInfo.FunctionResource[] |
getResources() |
boolean |
isBlockedFunction() |
boolean |
isBuiltIn() |
boolean |
isDiscarded() |
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 |
isPersistent() |
boolean |
isTableFunction() |
void |
setBlockedFunction(boolean blockedFunction) |
void |
shareStateWith(FunctionInfo function) |
public FunctionInfo(String displayName, String className, FunctionInfo.FunctionResource... resources)
public FunctionInfo(boolean isNative, String displayName, GenericUDF genericUDF, FunctionInfo.FunctionResource... resources)
public FunctionInfo(boolean isNative, String displayName, GenericUDAFResolver genericUDAFResolver, FunctionInfo.FunctionResource... resources)
public FunctionInfo(boolean isNative, String displayName, GenericUDTF genericUDTF, FunctionInfo.FunctionResource... resources)
public FunctionInfo(boolean isNative, String displayName, Class<? extends TableFunctionResolver> tFnCls, FunctionInfo.FunctionResource... resources)
public GenericUDF getGenericUDF()
public GenericUDTF getGenericUDTF()
public GenericUDAFResolver getGenericUDAFResolver()
public Class<?> getFunctionClass()
public String getDisplayName()
public boolean isNative()
public boolean isInternalTableFunction()
WindowingTableFunction
public boolean isGenericUDF()
public boolean isGenericUDAF()
public boolean isGenericUDTF()
public boolean isTableFunction()
public boolean isBlockedFunction()
public void setBlockedFunction(boolean blockedFunction)
public boolean isBuiltIn()
public boolean isPersistent()
public String getClassName()
public FunctionInfo.FunctionResource[] getResources()
public void discarded()
public boolean isDiscarded()
public void shareStateWith(FunctionInfo function)
Copyright © 2017 The Apache Software Foundation. All rights reserved.