public class SqlExecutionReporter extends Object
HttpStatement. This separate class cleanly separates the logic
for running a query from the logic for reporting on that run. A query
can end either with a success or error. This object is created in
the request thread, with the remaining method called either from the
request or response thread, but not both.| Constructor and Description |
|---|
SqlExecutionReporter(AbstractStatement stmt,
String remoteAddress) |
| Modifier and Type | Method and Description |
|---|---|
void |
emit() |
void |
failed(Throwable e) |
void |
planningTimeNanos(long planningTimeNanos) |
void |
succeeded(long bytesWritten) |
public SqlExecutionReporter(AbstractStatement stmt, String remoteAddress)
public void failed(Throwable e)
public void succeeded(long bytesWritten)
public void planningTimeNanos(long planningTimeNanos)
public void emit()
Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.