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

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

public class EnforceReadOnlyTables
extends Object
implements ExecuteWithHookContext

Implementation of a pre execute hook that prevents modifications of read-only tables used by the test framework


Constructor Summary
EnforceReadOnlyTables()
           
 
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

EnforceReadOnlyTables

public EnforceReadOnlyTables()
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.