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) |
AggregateFn |
loadAggregateFunction(java.util.List<java.lang.String> functionPath,
java.lang.String jarPath)
Load a user-defined aggregate function from the specified jar.
|
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 AggregateFn loadAggregateFunction(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