|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.intermine.sql.precompute.BestQueryExplainer.Candidate
protected class BestQueryExplainer.Candidate
A class representing a candidate optimised query.
| Field Summary | |
|---|---|
protected ExplainResult |
explainResult
|
protected Query |
query
|
protected java.lang.String |
queryString
|
protected int |
tableCount
|
| Constructor Summary | |
|---|---|
BestQueryExplainer.Candidate(Query query)
Constructor. |
|
BestQueryExplainer.Candidate(java.lang.String queryString)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
betterThan(BestQueryExplainer.Candidate c)
Returns true if the argument is slower than this, or if the argument is null. |
ExplainResult |
getExplain()
Returns the ExplainResult of this Candidate, fetching the data if not already present. |
Query |
getQuery()
Returns the Query of this Candidate, converting from a String if necessary. |
java.lang.String |
getQueryString()
Returns the String query of this Candidate, converting from Query if necessary. |
int |
getTableCount()
Returns the number of tables in this query. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String queryString
protected Query query
protected ExplainResult explainResult
protected int tableCount
| Constructor Detail |
|---|
public BestQueryExplainer.Candidate(java.lang.String queryString)
queryString - an SQL query Stringpublic BestQueryExplainer.Candidate(Query query)
query - a Query| Method Detail |
|---|
public int getTableCount()
public java.lang.String getQueryString()
public Query getQuery()
public ExplainResult getExplain()
throws java.sql.SQLException
java.sql.SQLException - if an error occurs in the underlying database
public boolean betterThan(BestQueryExplainer.Candidate c)
throws java.sql.SQLException
c - a Candidate
java.sql.SQLException - if an error occurs in the underlying databasepublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||