public class TunedQueryInfo extends Object implements Serializable
| Constructor and Description |
|---|
TunedQueryInfo(ObjectGraphOrigin queryPoint,
OrmQueryDetail tunedDetail,
int profileCount) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
autoFetchTune(SpiQuery<?> query)
Tune the query by replacing its OrmQueryDetail with a tuned one.
|
Long |
getLastTuneTime()
Return the time of the last tune.
|
String |
getLogOutput(OrmQueryDetail newQueryDetail) |
ObjectGraphOrigin |
getOrigin() |
int |
getProfileCount()
Return the number of times profiling has been collected for this query
point.
|
int |
getTunedCount()
Return the number of queries tuned by this object.
|
OrmQueryDetail |
getTunedDetail() |
boolean |
isPercentageProfile(double rate)
Return true if this query should be profiled based on a percentage rate.
|
boolean |
isSame(OrmQueryDetail newQueryDetail)
Return true if the fetches are essentially the same.
|
void |
setProfileCount(int profileCount)
Set the number of times profiling has been collected for this query
point.
|
void |
setTunedDetail(OrmQueryDetail tunedDetail)
Set the tuned query detail.
|
String |
toString() |
public TunedQueryInfo(ObjectGraphOrigin queryPoint, OrmQueryDetail tunedDetail, int profileCount)
public boolean isPercentageProfile(double rate)
public void setProfileCount(int profileCount)
public void setTunedDetail(OrmQueryDetail tunedDetail)
public boolean isSame(OrmQueryDetail newQueryDetail)
public boolean autoFetchTune(SpiQuery<?> query)
public Long getLastTuneTime()
public int getTunedCount()
public int getProfileCount()
public OrmQueryDetail getTunedDetail()
public ObjectGraphOrigin getOrigin()
public String getLogOutput(OrmQueryDetail newQueryDetail)
Copyright © 2014. All Rights Reserved.