Package org.h2.engine
Class QueryStatisticsData.QueryEntry
java.lang.Object
org.h2.engine.QueryStatisticsData.QueryEntry
- Enclosing class:
QueryStatisticsData
The collected statistics for one query.
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
The number of times the statement was executed.long
The total execution time.private double
long
The maximum execution time, in nanoseconds.double
The mean execution time.long
The minimum execution time, in nanoseconds.long
The last time the statistics for this entry were updated, in milliseconds since 1970.long
The total number of rows.private double
long
The maximum number of rows.double
The mean number of rows.long
The minimum number of rows.final String
The SQL statement. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
double
(package private) void
update
(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()
-