Package org.h2.engine

Class QueryStatisticsData


  • public class QueryStatisticsData
    extends java.lang.Object
    Maintains query statistics.
    • Constructor Detail

      • QueryStatisticsData

        public QueryStatisticsData​(int maxQueryEntries)
    • Method Detail

      • setMaxQueryEntries

        public void setMaxQueryEntries​(int maxQueryEntries)
      • update

        public void update​(java.lang.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