类 QueryStatisticsImpl
- java.lang.Object
-
- org.hibernate.stat.internal.QueryStatisticsImpl
-
- 所有已实现的接口:
Serializable,QueryStatistics
public class QueryStatisticsImpl extends Object implements QueryStatistics
Query statistics (HQL and SQL) Note that for a cached query, the cache miss is equals to the db count- 作者:
- Alex Snaps
- 另请参阅:
- 序列化表格
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 longgetCacheHitCount()Queries retrieved successfully from the cachelonggetCacheMissCount()The number of cache misses for this querylonggetCachePutCount()The number of cache puts for this querylonggetExecutionAvgTime()average time in ms taken by the execution of this query onto the DBdoublegetExecutionAvgTimeAsDouble()average time in ms as double taken by the execution of this query onto the DBlonggetExecutionCount()queries executed to the DBlonggetExecutionMaxTime()max time in ms taken by the execution of this query onto the DBlonggetExecutionMinTime()min time in ms taken by the execution of this query onto the DBlonggetExecutionRowCount()Number of lines returned by all the executions of this query (from DB) For now,Query.iterate()and {@link org.hibernate.Query#scroll()()} do not fill this statisticlonggetExecutionTotalTime()total time in ms taken by the execution of this query onto the DBlonggetPlanCacheHitCount()Query plan successfully fetched from the cachelonggetPlanCacheMissCount()Query plan not fetched from the cachelonggetPlanCompilationTotalMicroseconds()Query plan overall compiled totalStringtoString()
-
-
-
方法详细资料
-
getExecutionCount
public long getExecutionCount()
queries executed to the DB- 指定者:
getExecutionCount在接口中QueryStatistics
-
getCacheHitCount
public long getCacheHitCount()
Queries retrieved successfully from the cache- 指定者:
getCacheHitCount在接口中QueryStatistics
-
getCachePutCount
public long getCachePutCount()
从接口复制的说明:QueryStatisticsThe number of cache puts for this query- 指定者:
getCachePutCount在接口中QueryStatistics
-
getCacheMissCount
public long getCacheMissCount()
从接口复制的说明:QueryStatisticsThe number of cache misses for this query- 指定者:
getCacheMissCount在接口中QueryStatistics
-
getExecutionRowCount
public long getExecutionRowCount()
Number of lines returned by all the executions of this query (from DB) For now,Query.iterate()and {@link org.hibernate.Query#scroll()()} do not fill this statistic- 指定者:
getExecutionRowCount在接口中QueryStatistics- 返回:
- The number of rows cumulatively returned by the given query; iterate and scroll queries do not effect this total as their number of returned rows is not known at execution time.
-
getExecutionAvgTime
public long getExecutionAvgTime()
average time in ms taken by the execution of this query onto the DB- 指定者:
getExecutionAvgTime在接口中QueryStatistics
-
getExecutionAvgTimeAsDouble
public double getExecutionAvgTimeAsDouble()
average time in ms as double taken by the execution of this query onto the DB- 指定者:
getExecutionAvgTimeAsDouble在接口中QueryStatistics
-
getExecutionMaxTime
public long getExecutionMaxTime()
max time in ms taken by the execution of this query onto the DB- 指定者:
getExecutionMaxTime在接口中QueryStatistics
-
getExecutionMinTime
public long getExecutionMinTime()
min time in ms taken by the execution of this query onto the DB- 指定者:
getExecutionMinTime在接口中QueryStatistics
-
getExecutionTotalTime
public long getExecutionTotalTime()
total time in ms taken by the execution of this query onto the DB- 指定者:
getExecutionTotalTime在接口中QueryStatistics
-
getPlanCacheHitCount
public long getPlanCacheHitCount()
Query plan successfully fetched from the cache- 指定者:
getPlanCacheHitCount在接口中QueryStatistics
-
getPlanCacheMissCount
public long getPlanCacheMissCount()
Query plan not fetched from the cache- 指定者:
getPlanCacheMissCount在接口中QueryStatistics
-
getPlanCompilationTotalMicroseconds
public long getPlanCompilationTotalMicroseconds()
Query plan overall compiled total
-
-