public class UDFClassLoader extends URLClassLoader
UDFClassLoader is used to dynamically register
udf (and related) jars
This was introducted to fix HIVE-11878
Each session will have its own instance of UDFClassLoader
This is to support HiveServer2 where there can be multiple
active sessions. Addition/removal of jars/resources in one
session should not affect other sessions.| Constructor and Description |
|---|
UDFClassLoader(URL[] urls) |
UDFClassLoader(URL[] urls,
ClassLoader parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
addURL(URL url) |
void |
close() |
boolean |
isClosed()
|
definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstancedefineClass, defineClassclearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignerspublic UDFClassLoader(URL[] urls)
public UDFClassLoader(URL[] urls, ClassLoader parent)
public void addURL(URL url)
addURL in class URLClassLoaderpublic boolean isClosed()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class URLClassLoaderIOExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.