public class HookUtils
extends java.lang.Object
| Constructor and Description |
|---|
HookUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Hook> |
getHooks(HiveConf conf,
HiveConf.ConfVars hookConfVar,
java.lang.Class<T> clazz)
Returns the hooks specified in a configuration variable.
|
public static <T extends Hook> java.util.List<T> getHooks(HiveConf conf, HiveConf.ConfVars hookConfVar, java.lang.Class<T> clazz) throws java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException
conf - Configuration objecthookConfVar - The configuration variable specifying a comma separated list
of the hook class names.clazz - The super type of the hooks.java.lang.ClassNotFoundExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionCopyright © 2012 The Apache Software Foundation