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)
QueryLifeTimeHookbeforeCompile in interface QueryLifeTimeHookctx - the context for the hookpublic void afterCompile(QueryLifeTimeHookContext ctx, boolean hasError)
QueryLifeTimeHookafterCompile in interface QueryLifeTimeHookctx - the context for the hookhasError - whether any error occurred during compilation.public void beforeExecution(QueryLifeTimeHookContext ctx)
QueryLifeTimeHookbeforeExecution in interface QueryLifeTimeHookctx - the context for the hookpublic void afterExecution(QueryLifeTimeHookContext ctx, boolean hasError)
QueryLifeTimeHookafterExecution in interface QueryLifeTimeHookctx - the context for the hookhasError - whether any error occurred during query execution.Copyright © 2019 The Apache Software Foundation. All Rights Reserved.