| Modifier and Type | Class and Description |
|---|---|
| public static class | QueryStatisticsData.
The collected statistics for one query. |
| Modifier and Type | Field and Description |
|---|---|
| private final HashMap | |
| private int | |
| private static final Comparator |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized List | |
| public synchronized void | |
| public synchronized void |
| map | back to summary |
|---|---|
| private final HashMap<String, QueryStatisticsData. | |
| maxQueryEntries | back to summary |
|---|---|
| private int maxQueryEntries | |
| QUERY_ENTRY_COMPARATOR | back to summary |
|---|---|
| private static final Comparator<QueryStatisticsData. | |
| QueryStatisticsData | back to summary |
|---|---|
| public QueryStatisticsData(int maxQueryEntries) | |
| getQueries | back to summary |
|---|---|
| public synchronized List | |
| setMaxQueryEntries | back to summary |
|---|---|
| public synchronized void setMaxQueryEntries(int maxQueryEntries) | |
| update | back to summary |
|---|---|
| public synchronized void update(String sqlStatement, long executionTimeNanos, long rowCount) Update query statistics.
| |
| Modifier and Type | Field and Description |
|---|---|
| public int | count
The number of times the statement was executed. |
| public long | executionTimeCumulativeNanos
The total execution time. |
| private double | |
| public long | executionTimeMaxNanos
The maximum execution time, in nanoseconds. |
| public double | executionTimeMeanNanos
The mean execution time. |
| public long | executionTimeMinNanos
The minimum execution time, in nanoseconds. |
| public long | lastUpdateTime
The last time the statistics for this entry were updated, in milliseconds since 1970. |
| public long | rowCountCumulative
The total number of rows. |
| private double | |
| public long | rowCountMax
The maximum number of rows. |
| public double | rowCountMean
The mean number of rows. |
| public long | rowCountMin
The minimum number of rows. |
| public final String | sqlStatement
The SQL statement. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public double | |
| public double | |
| pack-priv void | update(long
the execution time in nanos timeNanos, long the number of rows rows)Update the statistics entry. |
| count | back to summary |
|---|---|
| public int count The number of times the statement was executed. | |
| executionTimeCumulativeNanos | back to summary |
|---|---|
| public long executionTimeCumulativeNanos The total execution time. | |
| executionTimeM2Nanos | back to summary |
|---|---|
| private double executionTimeM2Nanos | |
| executionTimeMaxNanos | back to summary |
|---|---|
| public long executionTimeMaxNanos The maximum execution time, in nanoseconds. | |
| executionTimeMeanNanos | back to summary |
|---|---|
| public double executionTimeMeanNanos The mean execution time. | |
| executionTimeMinNanos | back to summary |
|---|---|
| public long executionTimeMinNanos The minimum execution time, in nanoseconds. | |
| lastUpdateTime | back to summary |
|---|---|
| public long lastUpdateTime The last time the statistics for this entry were updated, in milliseconds since 1970. | |
| rowCountCumulative | back to summary |
|---|---|
| public long rowCountCumulative The total number of rows. | |
| rowCountM2 | back to summary |
|---|---|
| private double rowCountM2 | |
| rowCountMax | back to summary |
|---|---|
| public long rowCountMax The maximum number of rows. | |
| rowCountMean | back to summary |
|---|---|
| public double rowCountMean The mean number of rows. | |
| rowCountMin | back to summary |
|---|---|
| public long rowCountMin The minimum number of rows. | |
| sqlStatement | back to summary |
|---|---|
| public final String sqlStatement The SQL statement. | |
| QueryEntry | back to summary |
|---|---|
| public QueryEntry(String sql) | |
| getExecutionTimeStandardDeviation | back to summary |
|---|---|
| public double getExecutionTimeStandardDeviation() | |
| getRowCountStandardDeviation | back to summary |
|---|---|
| public double getRowCountStandardDeviation() | |
| update | back to summary |
|---|---|
| pack-priv void update(long timeNanos, long rows) Update the statistics entry.
| |