public static class CQueryPlanStats.Snapshot extends Object implements MetaQueryPlanStatistic
| Constructor and Description |
|---|
CQueryPlanStats.Snapshot(CQueryPlan queryPlan,
long count,
long totalTime,
long totalBeans,
long maxTime,
long startTime,
long lastQueryTime,
List<MetaQueryPlanOriginCount> origins) |
| Modifier and Type | Method and Description |
|---|---|
long |
getAvgLoadedBeans()
Return the average number of bean loaded per query.
|
long |
getAvgTimeMicros()
Return the average query execution time in microseconds.
|
Class<?> |
getBeanType()
Return the bean type this query plan is for.
|
long |
getCollectionStart()
Return the time collection started (or was last reset).
|
long |
getExecutionCount()
Return the total number of queries executed.
|
long |
getLastQueryTime()
Return the time of the last query executed using this plan.
|
long |
getMaxTimeMicros()
Return the max execution time for this query.
|
List<MetaQueryPlanOriginCount> |
getOrigins()
Return the 'origin' points and paths that resulted in the query being
executed and the associated number of times the query was executed via that
path.
|
String |
getQueryPlanHash()
Return a string representation of the query plan hash.
|
String |
getSql()
Return the sql executed.
|
long |
getTotalLoadedBeans()
Return the total number of beans loaded by the queries.
|
long |
getTotalTimeMicros()
Return the total time taken by executions of this query.
|
boolean |
isAutofetchTuned()
Return true if this query plan was tuned by Autofetch.
|
String |
toString() |
public CQueryPlanStats.Snapshot(CQueryPlan queryPlan, long count, long totalTime, long totalBeans, long maxTime, long startTime, long lastQueryTime, List<MetaQueryPlanOriginCount> origins)
public Class<?> getBeanType()
MetaQueryPlanStatisticgetBeanType in interface MetaQueryPlanStatisticpublic long getExecutionCount()
MetaQueryPlanStatisticgetExecutionCount in interface MetaQueryPlanStatisticpublic long getTotalTimeMicros()
MetaQueryPlanStatisticgetTotalTimeMicros in interface MetaQueryPlanStatisticpublic long getTotalLoadedBeans()
MetaQueryPlanStatisticThis excludes background fetching.
getTotalLoadedBeans in interface MetaQueryPlanStatisticpublic long getMaxTimeMicros()
MetaQueryPlanStatisticgetMaxTimeMicros in interface MetaQueryPlanStatisticpublic long getCollectionStart()
MetaQueryPlanStatisticgetCollectionStart in interface MetaQueryPlanStatisticpublic long getLastQueryTime()
MetaQueryPlanStatisticgetLastQueryTime in interface MetaQueryPlanStatisticpublic boolean isAutofetchTuned()
MetaQueryPlanStatisticisAutofetchTuned in interface MetaQueryPlanStatisticpublic String getQueryPlanHash()
MetaQueryPlanStatisticgetQueryPlanHash in interface MetaQueryPlanStatisticpublic String getSql()
MetaQueryPlanStatisticgetSql in interface MetaQueryPlanStatisticpublic long getAvgTimeMicros()
MetaQueryPlanStatisticThis excludes background fetching.
getAvgTimeMicros in interface MetaQueryPlanStatisticpublic long getAvgLoadedBeans()
MetaQueryPlanStatisticThis excludes background fetching.
getAvgLoadedBeans in interface MetaQueryPlanStatisticpublic List<MetaQueryPlanOriginCount> getOrigins()
MetaQueryPlanStatisticThis includes direct and lazy loading paths.
getOrigins in interface MetaQueryPlanStatisticCopyright © 2014. All Rights Reserved.