org.apache.hadoop.hive.common
Class JavaUtils
java.lang.Object
org.apache.hadoop.hive.common.JavaUtils
public final class JavaUtils
- extends Object
Collection of Java class loading/reflection related utilities common across
Hive.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getClassLoader
public static ClassLoader getClassLoader()
- Standard way of getting classloader in Hive code (outside of Hadoop).
Uses the context loader to get access to classpaths to auxiliary and jars
added with 'add jar' command. Falls back to current classloader.
In Hadoop-related code, we use Configuration.getClassLoader().
Copyright © 2013 The Apache Software Foundation