public interface HiveSemanticAnalyzerHook extends Hook
Note that the lifetime of an instantiated hook object is scoped to the analysis of a single statement; hook instances are never reused.
| Modifier and Type | Method and Description |
|---|---|
void |
postAnalyze(HiveSemanticAnalyzerHookContext context,
List<Task<? extends Serializable>> rootTasks)
Invoked after Hive performs its own semantic analysis on a
statement (including optimization).
|
ASTNode |
preAnalyze(HiveSemanticAnalyzerHookContext context,
ASTNode ast)
Invoked before Hive performs its own semantic analysis on
a statement.
|
ASTNode preAnalyze(HiveSemanticAnalyzerHookContext context, ASTNode ast) throws SemanticException
context - context information for semantic analysisast - AST being analyzed and optionally rewrittenSemanticExceptionvoid postAnalyze(HiveSemanticAnalyzerHookContext context, List<Task<? extends Serializable>> rootTasks) throws SemanticException
context - context information for semantic analysisrootTasks - root tasks produced by semantic analysis;
the hook is free to modify this list or its contentsSemanticExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.