Package org.h2.engine
Class QueryStatisticsData.QueryEntry
- java.lang.Object
-
- org.h2.engine.QueryStatisticsData.QueryEntry
-
- Enclosing class:
- QueryStatisticsData
public static final class QueryStatisticsData.QueryEntry extends java.lang.ObjectThe collected statistics for one query.
-
-
Field Summary
Fields Modifier and Type Field Description intcountThe number of times the statement was executed.longexecutionTimeCumulativeNanosThe total execution time.private doubleexecutionTimeM2NanoslongexecutionTimeMaxNanosThe maximum execution time, in nanoseconds.doubleexecutionTimeMeanNanosThe mean execution time.longexecutionTimeMinNanosThe minimum execution time, in nanoseconds.longlastUpdateTimeThe last time the statistics for this entry were updated, in milliseconds since 1970.longrowCountCumulativeThe total number of rows.private doublerowCountM2longrowCountMaxThe maximum number of rows.doublerowCountMeanThe mean number of rows.longrowCountMinThe minimum number of rows.java.lang.StringsqlStatementThe SQL statement.
-
Constructor Summary
Constructors Constructor Description QueryEntry(java.lang.String sql)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetExecutionTimeStandardDeviation()doublegetRowCountStandardDeviation()(package private) voidupdate(long timeNanos, long rows)Update the statistics entry.
-
-
-
Field Detail
-
sqlStatement
public final java.lang.String sqlStatement
The SQL statement.
-
count
public int count
The number of times the statement was executed.
-
lastUpdateTime
public long lastUpdateTime
The last time the statistics for this entry were updated, in milliseconds since 1970.
-
executionTimeMinNanos
public long executionTimeMinNanos
The minimum execution time, in nanoseconds.
-
executionTimeMaxNanos
public long executionTimeMaxNanos
The maximum execution time, in nanoseconds.
-
executionTimeCumulativeNanos
public long executionTimeCumulativeNanos
The total execution time.
-
rowCountMin
public long rowCountMin
The minimum number of rows.
-
rowCountMax
public long rowCountMax
The maximum number of rows.
-
rowCountCumulative
public long rowCountCumulative
The total number of rows.
-
executionTimeMeanNanos
public double executionTimeMeanNanos
The mean execution time.
-
rowCountMean
public double rowCountMean
The mean number of rows.
-
executionTimeM2Nanos
private double executionTimeM2Nanos
-
rowCountM2
private double rowCountM2
-
-
Method Detail
-
update
void update(long timeNanos, long rows)Update the statistics entry.- Parameters:
timeNanos- the execution time in nanosrows- the number of rows
-
getExecutionTimeStandardDeviation
public double getExecutionTimeStandardDeviation()
-
getRowCountStandardDeviation
public double getRowCountStandardDeviation()
-
-