org.apache.hadoop.hive.ql.parse
Class HiveSemanticAnalyzerHookContextImpl

java.lang.Object
  extended by org.apache.hadoop.hive.ql.parse.HiveSemanticAnalyzerHookContextImpl
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable, HiveSemanticAnalyzerHookContext

public class HiveSemanticAnalyzerHookContextImpl
extends Object
implements HiveSemanticAnalyzerHookContext


Constructor Summary
HiveSemanticAnalyzerHookContextImpl()
           
 
Method Summary
 org.apache.hadoop.conf.Configuration getConf()
           
 Hive getHive()
           
 Set<ReadEntity> getInputs()
          The following methods will only be available to hooks executing postAnalyze.
 Set<WriteEntity> getOutputs()
           
 String getUserName()
           
 void setConf(org.apache.hadoop.conf.Configuration conf)
           
 void setUserName(String userName)
           
 void update(BaseSemanticAnalyzer sem)
          This should be called after the semantic analyzer completes.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HiveSemanticAnalyzerHookContextImpl

public HiveSemanticAnalyzerHookContextImpl()
Method Detail

getHive

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

getConf

public org.apache.hadoop.conf.Configuration getConf()
Specified by:
getConf in interface org.apache.hadoop.conf.Configurable

setConf

public void setConf(org.apache.hadoop.conf.Configuration conf)
Specified by:
setConf in interface org.apache.hadoop.conf.Configurable

update

public void update(BaseSemanticAnalyzer sem)
Description copied from interface: HiveSemanticAnalyzerHookContext
This should be called after the semantic analyzer completes.

Specified by:
update in interface HiveSemanticAnalyzerHookContext

getInputs

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

Specified by:
getInputs in interface HiveSemanticAnalyzerHookContext
Returns:
the set of read entities

getOutputs

public Set<WriteEntity> getOutputs()
Specified by:
getOutputs in interface HiveSemanticAnalyzerHookContext

getUserName

public String getUserName()
Specified by:
getUserName in interface HiveSemanticAnalyzerHookContext

setUserName

public void setUserName(String userName)
Specified by:
setUserName in interface HiveSemanticAnalyzerHookContext


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