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 Class |
loadClass(String shadePrefix,
String className) |
static String |
lockIdToString(long extLockId)
Utility method for ACID to normalize logging info.
|
static String |
txnIdsToString(List<Long> txnIds) |
static String |
txnIdToString(long txnId) |
static String |
writeIdToString(long writeId) |
public static ClassLoader getClassLoader()
public static Class loadClass(String shadePrefix, String className) throws ClassNotFoundException
ClassNotFoundException
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)
public static String txnIdToString(long txnId)
public static String writeIdToString(long writeId)
Copyright © 2022 The Apache Software Foundation. All rights reserved.