public final class JavaUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
closeClassLoader(ClassLoader loader) |
static boolean |
closeClassLoadersTo(ClassLoader current,
ClassLoader stop) |
static ClassLoader |
getClassLoader()
Standard way of getting classloader in Hive code (outside of Hadoop).
|
static Class |
loadClass(String className) |
static Class |
loadClass(String className,
boolean init) |
static String |
lockIdToString(long extLockId)
Utility method for ACID to normalize logging info
|
public static ClassLoader getClassLoader()
public static Class loadClass(String className) throws ClassNotFoundException
ClassNotFoundException
public static Class loadClass(String className, boolean init) throws ClassNotFoundException
ClassNotFoundException
public static boolean closeClassLoadersTo(ClassLoader current, ClassLoader stop)
public static void closeClassLoader(ClassLoader loader) throws IOException
IOException
public static String lockIdToString(long extLockId)
extLockId
- LockResponse.lockidCopyright © 2017 The Apache Software Foundation. All rights reserved.