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, newInstance
defineClass, defineClass
clearAssertionStatus, 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, setSigners
public UDFClassLoader(URL[] urls)
public UDFClassLoader(URL[] urls, ClassLoader parent)
public void addURL(URL url)
addURL
in class URLClassLoader
public boolean isClosed()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class URLClassLoader
IOException
Copyright © 2022 The Apache Software Foundation. All rights reserved.