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

java.lang.Object
  extended by org.apache.hadoop.hive.ql.hooks.PreExecutePrinter
All Implemented Interfaces:
ExecuteWithHookContext, Hook

public class PreExecutePrinter
extends Object
implements ExecuteWithHookContext

Implementation of a pre execute hook that simply prints out its parameters to standard output.


Constructor Summary
PreExecutePrinter()
           
 
Method Summary
 void run(HookContext hookContext)
           
 void run(SessionState sess, Set<ReadEntity> inputs, Set<WriteEntity> outputs, org.apache.hadoop.security.UserGroupInformation ugi)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreExecutePrinter

public PreExecutePrinter()
Method Detail

run

public void run(HookContext hookContext)
         throws Exception
Specified by:
run in interface ExecuteWithHookContext
Parameters:
hookContext - The hook context passed to each hooks.
Throws:
Exception

run

public void run(SessionState sess,
                Set<ReadEntity> inputs,
                Set<WriteEntity> outputs,
                org.apache.hadoop.security.UserGroupInformation ugi)
         throws Exception
Throws:
Exception


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