Class JavaUdfLoader
java.lang.Object
org.apache.beam.sdk.extensions.sql.impl.JavaUdfLoader
Loads
UdfProvider
implementations from user-provided jars.
All UDFs are loaded and cached for each jar to mitigate IO costs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateClassLoader
(List<String> inputJarPaths) loadAggregateFunction
(List<String> functionPath, String jarPath) Load a user-defined aggregate function from the specified jar.loadScalarFunction
(List<String> functionPath, String jarPath) Load a user-defined scalar function from the specified jar.
-
Constructor Details
-
JavaUdfLoader
public JavaUdfLoader()
-
-
Method Details
-
loadScalarFunction
Load a user-defined scalar function from the specified jar. -
loadAggregateFunction
Load a user-defined aggregate function from the specified jar. -
createClassLoader
- Throws:
IOException
-