@InterfaceAudience.Public @InterfaceStability.Stable public interface QueryLifeTimeHook extends Hook
Modifier and Type | Method and Description |
---|---|
void |
afterCompile(QueryLifeTimeHookContext ctx,
boolean hasError)
Invoked after a query compilation.
|
void |
afterExecution(QueryLifeTimeHookContext ctx,
boolean hasError)
Invoked after a query finishes its execution.
|
void |
beforeCompile(QueryLifeTimeHookContext ctx)
Invoked before a query enters the compilation phase.
|
void |
beforeExecution(QueryLifeTimeHookContext ctx)
Invoked before a query enters the execution phase.
|
void beforeCompile(QueryLifeTimeHookContext ctx)
ctx
- the context for the hookvoid afterCompile(QueryLifeTimeHookContext ctx, boolean hasError)
ctx
- the context for the hookhasError
- whether any error occurred during compilation.void beforeExecution(QueryLifeTimeHookContext ctx)
ctx
- the context for the hookvoid afterExecution(QueryLifeTimeHookContext ctx, boolean hasError)
ctx
- the context for the hookhasError
- whether any error occurred during query execution.Copyright © 2022 The Apache Software Foundation. All rights reserved.