Package org.h2.engine

Class QueryStatisticsData

java.lang.Object
org.h2.engine.QueryStatisticsData

public class QueryStatisticsData extends Object
Maintains query statistics.
  • Constructor Details

    • QueryStatisticsData

      public QueryStatisticsData(int maxQueryEntries)
  • Method Details

    • setMaxQueryEntries

      public void setMaxQueryEntries(int maxQueryEntries)
    • getQueries

      public List<QueryStatisticsData.QueryEntry> getQueries()
    • update

      public void update(String sqlStatement, long executionTimeNanos, long rowCount)
      Update query statistics.
      Parameters:
      sqlStatement - the statement being executed
      executionTimeNanos - the time in nanoseconds the query/update took to execute
      rowCount - the query or update row count