void runBeforeCompileHook(String command) {
    List<QueryLifeTimeHook> queryHooks = hooks.getHooks(QUERY_LIFETIME_HOOKS);
    if (!queryHooks.isEmpty()) {
      QueryLifeTimeHookContext qhc =
          new QueryLifeTimeHookContextImpl.Builder().withHiveConf(conf).withCommand(command).build();

      for (QueryLifeTimeHook hook : queryHooks) {
        hook.beforeCompile(qhc);
      }
    }
  }
Dispatches {@link QueryLifeTimeHook#beforeCompile(QueryLifeTimeHookContext)}.

@param command the Hive command that is being run
ql/src/java/org/apache/hadoop/hive/ql/HookRunner.java