org.apache.hadoop.hive.ql.parse
Interface HiveSemanticAnalyzerHookContext

All Superinterfaces:
org.apache.hadoop.conf.Configurable
All Known Implementing Classes:
HiveSemanticAnalyzerHookContextImpl

public interface HiveSemanticAnalyzerHookContext
extends org.apache.hadoop.conf.Configurable

Context information provided by Hive to implementations of HiveSemanticAnalyzerHook.


Method Summary
 Hive getHive()
           
 Set<ReadEntity> getInputs()
          The following methods will only be available to hooks executing postAnalyze.
 Set<WriteEntity> getOutputs()
           
 String getUserName()
           
 void setUserName(String userName)
           
 void update(BaseSemanticAnalyzer sem)
          This should be called after the semantic analyzer completes.
 
Methods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
 

Method Detail

getHive

Hive getHive()
             throws HiveException
Returns:
the Hive db instance; hook implementations can use this for purposes such as getting configuration information or making metastore calls
Throws:
HiveException

update

void update(BaseSemanticAnalyzer sem)
This should be called after the semantic analyzer completes.

Parameters:
sem -

getInputs

Set<ReadEntity> getInputs()
The following methods will only be available to hooks executing postAnalyze. If called in a preAnalyze method, they should return null.

Returns:
the set of read entities

getOutputs

Set<WriteEntity> getOutputs()

getUserName

String getUserName()

setUserName

void setUserName(String userName)


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