public void addPreHook(ExecuteWithHookContext hook) {
    hooks.addHook(PRE_EXEC_HOOK, hook);
  }
Dispatches {@link QueryLifeTimeHook#afterExecution(QueryLifeTimeHookContext, boolean)}.

@param command the Hive command that is being run
@param hookContext the {@link HookContext} of the command being run
@param executionError true if there was an error while executing the command, false otherwise
ql/src/java/org/apache/hadoop/hive/ql/HookRunner.java