@VisibleForTesting
  List getHooks(HookContext.HookType type, boolean loadFromConf) {
    if (loadFromConf) {
      return getHooks(type);
    }
    return typeHooks.getOrDefault(type, new Hooks()).getHooks();
  }
Get all hooks corresponding to the specific hook type.
@param type The hook type
@param clazz The hook class of returning hooks
@param <T> The generic type of the hooks
@return List of hooks
ql/src/java/org/apache/hadoop/hive/ql/hooks/HiveHooks.java