org.apache.hadoop.hive.ql
Interface HiveDriverRunHook

All Superinterfaces:
Hook
All Known Implementing Classes:
DriverTestHook

public interface HiveDriverRunHook
extends Hook

HiveDriverRunHook allows Hive to be extended with custom logic for processing commands.

Note that the lifetime of an instantiated hook object is scoped to the analysis of a single statement; hook instances are never reused.


Method Summary
 void postDriverRun(HiveDriverRunHookContext hookContext)
          Invoked after Hive performs any processing of a command, just before a response is returned to the entity calling the Driver.
 void preDriverRun(HiveDriverRunHookContext hookContext)
          Invoked before Hive begins any processing of a command in the Driver, notably before compilation and any customizable performance logging.
 

Method Detail

preDriverRun

void preDriverRun(HiveDriverRunHookContext hookContext)
                  throws Exception
Invoked before Hive begins any processing of a command in the Driver, notably before compilation and any customizable performance logging.

Throws:
Exception

postDriverRun

void postDriverRun(HiveDriverRunHookContext hookContext)
                   throws Exception
Invoked after Hive performs any processing of a command, just before a response is returned to the entity calling the Driver.

Throws:
Exception


Copyright © 2014 The Apache Software Foundation. All rights reserved.