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
FunctionMethod s
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()
FunctionMetadataSource
FunctionMethod
s
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 FunctionMetadataSource
public Class<?> getInvocationClass(String className) throws ClassNotFoundException
FunctionMetadataSource
getInvocationClass
in interface FunctionMetadataSource
className
- Name of classClassNotFoundException
- If class could not be foundpublic void setClassLoader(ClassLoader classLoader)
public ClassLoader getClassLoader()
FunctionMetadataSource
getClassLoader
in interface FunctionMetadataSource
Copyright © 2019. All rights reserved.