public abstract class AbstractSemanticAnalyzerHook extends Object implements HiveSemanticAnalyzerHook
Constructor and Description |
---|
AbstractSemanticAnalyzerHook() |
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.
|
public ASTNode preAnalyze(HiveSemanticAnalyzerHookContext context, ASTNode ast) throws SemanticException
HiveSemanticAnalyzerHook
preAnalyze
in interface HiveSemanticAnalyzerHook
context
- context information for semantic analysisast
- AST being analyzed and optionally rewrittenSemanticException
public void postAnalyze(HiveSemanticAnalyzerHookContext context, List<Task<? extends Serializable>> rootTasks) throws SemanticException
HiveSemanticAnalyzerHook
postAnalyze
in interface HiveSemanticAnalyzerHook
context
- context information for semantic analysisrootTasks
- root tasks produced by semantic analysis;
the hook is free to modify this list or its contentsSemanticException
Copyright © 2017 The Apache Software Foundation. All rights reserved.