public class UDFSource extends Object implements FunctionMetadataSource
| Modifier and Type | Field and Description |
|---|---|
protected Collection<FunctionMethod> |
functions |
| Constructor and Description |
|---|
UDFSource(Collection<FunctionMethod> methods) |
| Modifier and Type | Method and Description |
|---|---|
ClassLoader |
getClassLoader()
Classloader used for functions
|
Collection<FunctionMethod> |
getFunctionMethods()
This method requests that the source return all
FunctionMethods
the source knows about. |
Class<?> |
getInvocationClass(String className)
This method determines where the invocation classes specified in the
function metadata are actually retrieved from.
|
void |
setClassLoader(ClassLoader classLoader) |
protected Collection<FunctionMethod> functions
public UDFSource(Collection<FunctionMethod> methods)
public Collection<FunctionMethod> getFunctionMethods()
FunctionMetadataSourceFunctionMethods
the source knows about. This can occur in several situations -
on initial registration with the FunctionLibraryManager, on a
general reload, etc. This may be called multiple times and should
always return the newest information available.getFunctionMethods in interface FunctionMetadataSourcepublic Class<?> getInvocationClass(String className) throws ClassNotFoundException
FunctionMetadataSourcegetInvocationClass in interface FunctionMetadataSourceclassName - Name of classClassNotFoundException - If class could not be foundpublic void setClassLoader(ClassLoader classLoader)
public ClassLoader getClassLoader()
FunctionMetadataSourcegetClassLoader in interface FunctionMetadataSourceCopyright © 2019. All rights reserved.