org.apache.hadoop.hive.ql.parse
Class HiveSemanticAnalyzerHookContextImpl
java.lang.Object
org.apache.hadoop.hive.ql.parse.HiveSemanticAnalyzerHookContextImpl
- All Implemented Interfaces:
- org.apache.hadoop.conf.Configurable, HiveSemanticAnalyzerHookContext
public class HiveSemanticAnalyzerHookContextImpl
- extends Object
- implements HiveSemanticAnalyzerHookContext
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HiveSemanticAnalyzerHookContextImpl
public HiveSemanticAnalyzerHookContextImpl()
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
Copyright © 2013 The Apache Software Foundation