|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.avaje.ebean.meta.MetaQueryStatistic
public class MetaQueryStatistic
Query execution statistics Meta data.
Constructor Summary | |
---|---|
MetaQueryStatistic()
|
|
MetaQueryStatistic(boolean autofetchTuned,
String beanType,
int plan,
String sql,
int executionCount,
int totalLoadedBeans,
int totalTimeMicros,
long collectionStart,
long lastQueryTime)
Create a MetaQueryStatistic. |
Method Summary | |
---|---|
int |
getAvgLoadedBeans()
Return the average number of bean loaded per query. |
int |
getAvgTimeMicros()
Return the average query execution time in microseconds. |
String |
getBeanType()
Return the bean type. |
long |
getCollectionStart()
Return the time collection started. |
int |
getExecutionCount()
Return the total number of queries executed. |
int |
getFinalQueryPlanHash()
Return the queryPlanHash value. |
long |
getLastQueryTime()
Return the time of the last query executed using this plan. |
int |
getOrigQueryPlanHash()
Return the original query plan hash (calculated prior to autofetch tuning). |
String |
getSql()
Return the sql executed. |
int |
getTotalLoadedBeans()
Return the total number of beans loaded by the queries. |
int |
getTotalTimeMicros()
Return the number of times this query was executed. |
boolean |
isAutofetchTuned()
Return true if this query plan was built for Autofetch tuned queries. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MetaQueryStatistic()
public MetaQueryStatistic(boolean autofetchTuned, String beanType, int plan, String sql, int executionCount, int totalLoadedBeans, int totalTimeMicros, long collectionStart, long lastQueryTime)
Method Detail |
---|
public String toString()
toString
in class Object
public boolean isAutofetchTuned()
public int getOrigQueryPlanHash()
This will return 0 if there is no autofetch profiling or tuning on this query.
public int getFinalQueryPlanHash()
public String getBeanType()
public String getSql()
public int getExecutionCount()
public int getTotalLoadedBeans()
This excludes background fetching.
public int getTotalTimeMicros()
public long getCollectionStart()
public long getLastQueryTime()
public int getAvgTimeMicros()
This excludes background fetching.
public int getAvgLoadedBeans()
This excludes background fetching.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |