public class HiveSemanticAnalyzerHookContextImpl extends Object implements HiveSemanticAnalyzerHookContext
Constructor and Description |
---|
HiveSemanticAnalyzerHookContextImpl() |
Modifier and Type | Method and Description |
---|---|
String |
getCommand() |
org.apache.hadoop.conf.Configuration |
getConf() |
Hive |
getHive() |
Set<ReadEntity> |
getInputs()
The following methods will only be available to hooks executing postAnalyze.
|
String |
getIpAddress() |
Set<WriteEntity> |
getOutputs() |
String |
getUserName() |
void |
setCommand(String command) |
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
void |
setIpAddress(String ipAddress) |
void |
setUserName(String userName) |
void |
update(BaseSemanticAnalyzer sem)
This should be called after the semantic analyzer completes.
|
public Hive getHive() throws HiveException
getHive
in interface HiveSemanticAnalyzerHookContext
HiveException
public org.apache.hadoop.conf.Configuration getConf()
getConf
in interface org.apache.hadoop.conf.Configurable
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf
in interface org.apache.hadoop.conf.Configurable
public void update(BaseSemanticAnalyzer sem)
HiveSemanticAnalyzerHookContext
update
in interface HiveSemanticAnalyzerHookContext
public Set<ReadEntity> getInputs()
HiveSemanticAnalyzerHookContext
getInputs
in interface HiveSemanticAnalyzerHookContext
public Set<WriteEntity> getOutputs()
getOutputs
in interface HiveSemanticAnalyzerHookContext
public String getUserName()
getUserName
in interface HiveSemanticAnalyzerHookContext
public void setUserName(String userName)
setUserName
in interface HiveSemanticAnalyzerHookContext
public String getIpAddress()
getIpAddress
in interface HiveSemanticAnalyzerHookContext
public void setIpAddress(String ipAddress)
setIpAddress
in interface HiveSemanticAnalyzerHookContext
public String getCommand()
getCommand
in interface HiveSemanticAnalyzerHookContext
public void setCommand(String command)
setCommand
in interface HiveSemanticAnalyzerHookContext
Copyright © 2017 The Apache Software Foundation. All rights reserved.