接口 QueryStatistics
-
- 所有超级接口:
Serializable
- 所有已知实现类:
QueryStatisticsImpl
public interface QueryStatistics extends Serializable
Query statistics (HQL and SQL) Note that for a cached query, the cache miss is equals to the db count- 作者:
- Gavin King, Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 longgetCacheHitCount()The number of cache hits for this query.longgetCacheMissCount()The number of cache misses for this querylonggetCachePutCount()The number of cache puts for this querylonggetExecutionAvgTime()What is the average amount time taken to execute this query?doublegetExecutionAvgTimeAsDouble()longgetExecutionCount()How many times has this query been executed?longgetExecutionMaxTime()What is the max amount time taken to execute this query?longgetExecutionMinTime()What is the min amount time taken to execute this query?longgetExecutionRowCount()How many ResultSet rows have been processed for this query ?longgetExecutionTotalTime()How long, cumulatively, have all executions of this query taken?default longgetPlanCacheHitCount()The number of query plans successfully fetched from the cache.default longgetPlanCacheMissCount()The number of query plans *not* fetched from the cache.default longgetPlanCompilationTotalMicroseconds()The overall time spent to compile the plan for this particular query.
-
-
-
方法详细资料
-
getExecutionCount
long getExecutionCount()
How many times has this query been executed?
-
getExecutionRowCount
long getExecutionRowCount()
How many ResultSet rows have been processed for this query ?
-
getExecutionAvgTime
long getExecutionAvgTime()
What is the average amount time taken to execute this query?
-
getExecutionMaxTime
long getExecutionMaxTime()
What is the max amount time taken to execute this query?
-
getExecutionMinTime
long getExecutionMinTime()
What is the min amount time taken to execute this query?
-
getExecutionTotalTime
long getExecutionTotalTime()
How long, cumulatively, have all executions of this query taken?
-
getExecutionAvgTimeAsDouble
double getExecutionAvgTimeAsDouble()
-
getCacheHitCount
long getCacheHitCount()
The number of cache hits for this query.
-
getCacheMissCount
long getCacheMissCount()
The number of cache misses for this query
-
getCachePutCount
long getCachePutCount()
The number of cache puts for this query
-
getPlanCacheHitCount
default long getPlanCacheHitCount()
The number of query plans successfully fetched from the cache.
-
getPlanCacheMissCount
default long getPlanCacheMissCount()
The number of query plans *not* fetched from the cache.
-
getPlanCompilationTotalMicroseconds
default long getPlanCompilationTotalMicroseconds()
The overall time spent to compile the plan for this particular query.
-
-