public class JavaUdfLoader
extends java.lang.Object
UdfProvider
implementations from user-provided jars.
All UDFs are loaded and cached for each jar to mitigate IO costs.
Constructor and Description |
---|
JavaUdfLoader() |
Modifier and Type | Method and Description |
---|---|
java.lang.ClassLoader |
createClassLoader(java.util.List<java.lang.String> inputJarPaths) |
ScalarFn |
loadScalarFunction(java.util.List<java.lang.String> functionPath,
java.lang.String jarPath)
Load a user-defined scalar function from the specified jar.
|
public ScalarFn loadScalarFunction(java.util.List<java.lang.String> functionPath, java.lang.String jarPath)
public java.lang.ClassLoader createClassLoader(java.util.List<java.lang.String> inputJarPaths) throws java.io.IOException
java.io.IOException