org.intermine.sql.precompute
Class BestQueryExplainerVerbose
java.lang.Object
org.intermine.sql.precompute.BestQuery
org.intermine.sql.precompute.BestQueryExplainer
org.intermine.sql.precompute.BestQueryExplainerVerbose
public class BestQueryExplainerVerbose
- extends BestQueryExplainer
Gets the database to explain each Query added and keeps hold of the best one, logging all
actions for the benefit of the IqlShell user.
|
Constructor Summary |
BestQueryExplainerVerbose(java.sql.Connection con,
long timeLimit)
Constructs an empty BestQueryExplainerVerbose. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BestQueryExplainerVerbose
public BestQueryExplainerVerbose(java.sql.Connection con,
long timeLimit)
- Constructs an empty BestQueryExplainerVerbose.
- Parameters:
con - the Connection to usetimeLimit - the time limit
getExplainResult
protected ExplainResult getExplainResult(Query q)
throws java.sql.SQLException
- Internal method that creates an ExplainResult. It can be overridden by subclasses.
- Overrides:
getExplainResult in class BestQueryExplainer
- Parameters:
q - the Query
- Returns:
- an ExplainResult
- Throws:
java.sql.SQLException - if an error occurs in the underlying database
getExplainResult
protected ExplainResult getExplainResult(java.lang.String q)
throws java.sql.SQLException
- Internal method that creates an ExplainResult. It can be overridden by subclasses.
- Overrides:
getExplainResult in class BestQueryExplainer
- Parameters:
q - the query String
- Returns:
- an ExplainResult
- Throws:
java.sql.SQLException - if an error occurs in the underlying database
didNotExplain
protected void didNotExplain(BestQueryExplainer.Candidate c)
- Internal method that records that a query was not explained. It can be overridden by
subclasses.
- Overrides:
didNotExplain in class BestQueryExplainer
- Parameters:
c - the Candidate
throwBestQueryException
public void throwBestQueryException(java.lang.String message)
throws BestQueryException
- Throws an exception. This gives the subclasses a chance to intercept it.
- Overrides:
throwBestQueryException in class BestQueryExplainer
- Parameters:
message - a message
- Throws:
BestQueryException - with the message