Top Description Methods
org.hibernate.stat

public Interface QueryStatistics

extends Serializable
Known Direct Implementers
org.hibernate.stat.internal.QueryStatisticsImpl
Imports
java.io.Serializable

Statistics relating to a particular query written in HQL or SQL.

Note that for a cached query, the number of cache misses is the same as the number of queries actually executed against the database.

Authors
Gavin King, Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public long
getCacheHitCount()

The number of cache hits for this query.

public long
getCacheMissCount()

The number of cache misses for this query

public long
getCachePutCount()

The number of cache puts for this query

public long
getExecutionAvgTime()

What is the average amount time taken to execute this query?

public double
public long
getExecutionCount()

How many times has this query been executed?

public long
getExecutionMaxTime()

What is the max amount time taken to execute this query?

public long
getExecutionMinTime()

What is the min amount time taken to execute this query?

public long
getExecutionRowCount()

How many java.sql.ResultSet rows have been processed for this query

public long
getExecutionTotalTime()

How long, cumulatively, have all executions of this query taken?

public default long
getPlanCacheHitCount()

The number of query plans successfully fetched from the cache.

public default long
getPlanCacheMissCount()

The number of query plans *not* fetched from the cache.

public default long
getPlanCompilationTotalMicroseconds()

The overall time spent to compile the plan for this particular query.

Method Detail

getCacheHitCountback to summary
public long getCacheHitCount()

The number of cache hits for this query.

API Note

Note that a query can be saved into different regions at different times. This value represents the sum total across all of those regions

getCacheMissCountback to summary
public long getCacheMissCount()

The number of cache misses for this query

API Note

Note that a query can be saved into different regions at different times. This value represents the sum total across all of those regions

getCachePutCountback to summary
public long getCachePutCount()

The number of cache puts for this query

API Note

Note that a query can be saved into different regions at different times. This value represents the sum total across all of those regions

getExecutionAvgTimeback to summary
public long getExecutionAvgTime()

What is the average amount time taken to execute this query?

getExecutionAvgTimeAsDoubleback to summary
public double getExecutionAvgTimeAsDouble()
getExecutionCountback to summary
public long getExecutionCount()

How many times has this query been executed?

getExecutionMaxTimeback to summary
public long getExecutionMaxTime()

What is the max amount time taken to execute this query?

getExecutionMinTimeback to summary
public long getExecutionMinTime()

What is the min amount time taken to execute this query?

getExecutionRowCountback to summary
public long getExecutionRowCount()

How many java.sql.ResultSet rows have been processed for this query

getExecutionTotalTimeback to summary
public long getExecutionTotalTime()

How long, cumulatively, have all executions of this query taken?

getPlanCacheHitCountback to summary
public default long getPlanCacheHitCount()

The number of query plans successfully fetched from the cache.

getPlanCacheMissCountback to summary
public default long getPlanCacheMissCount()

The number of query plans *not* fetched from the cache.

getPlanCompilationTotalMicrosecondsback to summary
public default long getPlanCompilationTotalMicroseconds()

The overall time spent to compile the plan for this particular query.