|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.intermine.sql.precompute.BestQuery
org.intermine.sql.precompute.BestQueryFallback
public class BestQueryFallback
Gets the database to explain each Query added and keeps hold of the best one so far.
| Field Summary | |
|---|---|
protected Query |
query
|
protected java.lang.String |
queryString
|
| Constructor Summary | |
|---|---|
BestQueryFallback(Query query,
java.lang.String queryString)
Constructs a BestQueryFallback |
|
| Method Summary | |
|---|---|
void |
add(Query q)
Allows a Query to be added to this tracker. |
void |
add(java.lang.String q)
Allows a Query to be added to this tracker. |
ExplainResult |
getBestExplainResult()
Gets the ExpainResult for the best Query found so far |
Query |
getBestQuery()
Gets the best Query found so far |
java.lang.String |
getBestQueryString()
Gets the best query String found so far |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Query query
protected java.lang.String queryString
| Constructor Detail |
|---|
public BestQueryFallback(Query query,
java.lang.String queryString)
query - a Query - may be nullqueryString - a String - may be null| Method Detail |
|---|
public void add(Query q)
throws BestQueryException
add in class BestQueryq - a Query to be added to the tracker
BestQueryException - always - this BestQuery does not support updates
public void add(java.lang.String q)
throws BestQueryException
add in class BestQueryq - a query String to be added to the tracker
BestQueryException - always - this BestQuery does not support updatespublic Query getBestQuery()
getBestQuery in class BestQuerypublic java.lang.String getBestQueryString()
getBestQueryString in class BestQuerypublic ExplainResult getBestExplainResult()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||