org.apache.hadoop.hive.ql.hooks
Class HookUtils
java.lang.Object
org.apache.hadoop.hive.ql.hooks.HookUtils
public class HookUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HookUtils
public HookUtils()
getHooks
public static <T extends Hook> List<T> getHooks(HiveConf conf,
HiveConf.ConfVars hookConfVar,
Class<T> clazz)
throws InstantiationException,
IllegalAccessException,
ClassNotFoundException
- Returns the hooks specified in a configuration variable. The hooks are returned
in a list in the order they were specified in the configuration variable.
- Parameters:
conf
- Configuration objecthookConfVar
- The configuration variable specifying a comma separated list
of the hook class names.clazz
- The super type of the hooks.
- Returns:
- A list of the hooks cast as the type specified in clazz,
in the order they are listed in the value of hookConfVar
- Throws:
ClassNotFoundException
IllegalAccessException
InstantiationException
Copyright © 2012 The Apache Software Foundation