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() |
HiveOperation |
getHiveOperation() |
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 |
setHiveOperation(HiveOperation commandType) |
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 HiveSemanticAnalyzerHookContextHiveExceptionpublic org.apache.hadoop.conf.Configuration getConf()
getConf in interface org.apache.hadoop.conf.Configurablepublic void setConf(org.apache.hadoop.conf.Configuration conf)
setConf in interface org.apache.hadoop.conf.Configurablepublic void update(BaseSemanticAnalyzer sem)
HiveSemanticAnalyzerHookContextupdate in interface HiveSemanticAnalyzerHookContextpublic Set<ReadEntity> getInputs()
HiveSemanticAnalyzerHookContextgetInputs in interface HiveSemanticAnalyzerHookContextpublic Set<WriteEntity> getOutputs()
getOutputs in interface HiveSemanticAnalyzerHookContextpublic String getUserName()
getUserName in interface HiveSemanticAnalyzerHookContextpublic void setUserName(String userName)
setUserName in interface HiveSemanticAnalyzerHookContextpublic String getIpAddress()
getIpAddress in interface HiveSemanticAnalyzerHookContextpublic void setIpAddress(String ipAddress)
setIpAddress in interface HiveSemanticAnalyzerHookContextpublic String getCommand()
getCommand in interface HiveSemanticAnalyzerHookContextpublic void setCommand(String command)
setCommand in interface HiveSemanticAnalyzerHookContextpublic HiveOperation getHiveOperation()
getHiveOperation in interface HiveSemanticAnalyzerHookContextpublic void setHiveOperation(HiveOperation commandType)
setHiveOperation in interface HiveSemanticAnalyzerHookContextCopyright © 2019 The Apache Software Foundation. All Rights Reserved.