Package org.h2.engine
Class QueryStatisticsData
- java.lang.Object
-
- org.h2.engine.QueryStatisticsData
-
public class QueryStatisticsData extends java.lang.Object
Maintains query statistics.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QueryStatisticsData.QueryEntry
The collected statistics for one query.
-
Constructor Summary
Constructors Constructor Description QueryStatisticsData(int maxQueryEntries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<QueryStatisticsData.QueryEntry>
getQueries()
void
setMaxQueryEntries(int maxQueryEntries)
void
update(java.lang.String sqlStatement, long executionTimeNanos, long rowCount)
Update query statistics.
-
-
-
Method Detail
-
setMaxQueryEntries
public void setMaxQueryEntries(int maxQueryEntries)
-
getQueries
public java.util.List<QueryStatisticsData.QueryEntry> getQueries()
-
update
public void update(java.lang.String sqlStatement, long executionTimeNanos, long rowCount)
Update query statistics.- Parameters:
sqlStatement
- the statement being executedexecutionTimeNanos
- the time in nanoseconds the query/update took to executerowCount
- the query or update row count
-
-