org.h2.engine
Class QueryStatisticsData

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

public class QueryStatisticsData
extends java.lang.Object

Maintains query statistics.


Nested Class Summary
static class QueryStatisticsData.QueryEntry
          The collected statistics for one query.
 
Constructor Summary
QueryStatisticsData()
           
 
Method Summary
 java.util.List<QueryStatisticsData.QueryEntry> getQueries()
           
 void update(java.lang.String sqlStatement, long executionTime, int rowCount)
          Update query statistics.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryStatisticsData

public QueryStatisticsData()
Method Detail

getQueries

public java.util.List<QueryStatisticsData.QueryEntry> getQueries()

update

public void update(java.lang.String sqlStatement,
                   long executionTime,
                   int rowCount)
Update query statistics.

Parameters:
sqlStatement - the statement being executed
executionTime - the time in milliseconds the query/update took to execute
rowCount - the query or update row count