|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HiveSemanticAnalyzerHook
HiveSemanticAnalyzerHook allows Hive to be extended with custom logic for semantic analysis of QL statements. This interface and any Hive internals it exposes are currently "limited private and evolving" (unless otherwise stated elsewhere) and intended mainly for use by the Howl project.
Note that the lifetime of an instantiated hook object is scoped to the analysis of a single statement; hook instances are never reused.
Method Summary | |
---|---|
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. |
Method Detail |
---|
ASTNode preAnalyze(HiveSemanticAnalyzerHookContext context, ASTNode ast) throws SemanticException
context
- context information for semantic analysisast
- AST being analyzed and optionally rewritten
SemanticException
void 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 contents
SemanticException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |