public class QueryStatisticsData
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
QueryStatisticsData.QueryEntry
The collected statistics for one query.
|
Constructor and Description |
---|
QueryStatisticsData(int maxQueryEntries) |
Modifier and Type | Method and Description |
---|---|
java.util.List<QueryStatisticsData.QueryEntry> |
getQueries() |
void |
setMaxQueryEntries(int maxQueryEntries) |
void |
update(java.lang.String sqlStatement,
long executionTimeNanos,
long rowCount)
Update query statistics.
|
public void setMaxQueryEntries(int maxQueryEntries)
public java.util.List<QueryStatisticsData.QueryEntry> getQueries()
public void update(java.lang.String sqlStatement, long executionTimeNanos, long rowCount)
sqlStatement
- the statement being executedexecutionTimeNanos
- the time in nanoseconds the query/update took
to executerowCount
- the query or update row count