org.apache.hadoop.hive.common
Class JavaUtils

java.lang.Object
  extended by org.apache.hadoop.hive.common.JavaUtils

public class JavaUtils
extends Object

Collection of Java class loading/reflection related utilities common across Hive


Constructor Summary
JavaUtils()
           
 
Method Summary
static ClassLoader getClassLoader()
          Standard way of getting classloader in Hive code (outside of Hadoop).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaUtils

public JavaUtils()
Method Detail

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 © 2009 The Apache Software Foundation