public class MetricsQueryLifeTimeHook extends Object implements QueryLifeTimeHook
Constructor and Description |
---|
MetricsQueryLifeTimeHook() |
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.
|
public void beforeCompile(QueryLifeTimeHookContext ctx)
QueryLifeTimeHook
beforeCompile
in interface QueryLifeTimeHook
ctx
- the context for the hookpublic void afterCompile(QueryLifeTimeHookContext ctx, boolean hasError)
QueryLifeTimeHook
afterCompile
in interface QueryLifeTimeHook
ctx
- the context for the hookhasError
- whether any error occurred during compilation.public void beforeExecution(QueryLifeTimeHookContext ctx)
QueryLifeTimeHook
beforeExecution
in interface QueryLifeTimeHook
ctx
- the context for the hookpublic void afterExecution(QueryLifeTimeHookContext ctx, boolean hasError)
QueryLifeTimeHook
afterExecution
in interface QueryLifeTimeHook
ctx
- the context for the hookhasError
- whether any error occurred during query execution.Copyright © 2022 The Apache Software Foundation. All rights reserved.