Class 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.
    Author:
    Matthew Wakeling
    • Constructor Detail

      • BestQueryExplainerVerbose

        public BestQueryExplainerVerbose​(java.sql.Connection con,
                                         long timeLimit)
        Constructs an empty BestQueryExplainerVerbose.
        Parameters:
        con - the Connection to use
        timeLimit - the time limit
    • Method Detail

      • 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