org.apache.hadoop.hive.ql.hooks
Class HookUtils

java.lang.Object
  extended by org.apache.hadoop.hive.ql.hooks.HookUtils

public class HookUtils
extends Object


Constructor Summary
HookUtils()
           
 
Method Summary
static
<T extends Hook>
List<T>
getHooks(HiveConf conf, HiveConf.ConfVars hookConfVar, Class<T> clazz)
          Returns the hooks specified in a configuration variable.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HookUtils

public HookUtils()
Method Detail

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 object
hookConfVar - 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 © 2014 The Apache Software Foundation. All rights reserved.