Class QueryStatisticsData.QueryEntry
java.lang.Object
org.h2.engine.QueryStatisticsData.QueryEntry
- Enclosing class:
QueryStatisticsData
The collected statistics for one query.
-
Field Summary
FieldsModifier and TypeFieldDescriptionintThe number of times the statement was executed.longThe total execution time.private doublelongThe maximum execution time, in nanoseconds.doubleThe mean execution time.longThe minimum execution time, in nanoseconds.longThe last time the statistics for this entry were updated, in milliseconds since 1970.longThe total number of rows.private doublelongThe maximum number of rows.doubleThe mean number of rows.longThe minimum number of rows.final StringThe SQL statement. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubledouble(package private) voidupdate(long timeNanos, long rows) Update the statistics entry.
-
Field Details
-
sqlStatement
The SQL statement. -
count
public int countThe number of times the statement was executed. -
lastUpdateTime
public long lastUpdateTimeThe last time the statistics for this entry were updated, in milliseconds since 1970. -
executionTimeMinNanos
public long executionTimeMinNanosThe minimum execution time, in nanoseconds. -
executionTimeMaxNanos
public long executionTimeMaxNanosThe maximum execution time, in nanoseconds. -
executionTimeCumulativeNanos
public long executionTimeCumulativeNanosThe total execution time. -
rowCountMin
public long rowCountMinThe minimum number of rows. -
rowCountMax
public long rowCountMaxThe maximum number of rows. -
rowCountCumulative
public long rowCountCumulativeThe total number of rows. -
executionTimeMeanNanos
public double executionTimeMeanNanosThe mean execution time. -
rowCountMean
public double rowCountMeanThe mean number of rows. -
executionTimeM2Nanos
private double executionTimeM2Nanos -
rowCountM2
private double rowCountM2
-
-
Constructor Details
-
QueryEntry
-
-
Method Details
-
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()
-