@@ -0,0 +1,1013 @@
+package org.flymine.sql.query;%0A%0Aimport java.sql.*;%0A%0A/**%0A * Subclass of ExplainResult not associated with a database. The amount of%0A * time this query will take is the number of tables plus the number of constraints%0A * in milliseconds.%0A *%0A * @author Andrew Varley%0A */%0Apublic class DummyExplainResult extends ExplainResult%0A%7B%0A    /*%0A     * Fields inherited from ExplainResult:%0A     * protected long rows, start, complete, width, estimatedRows%0A     */%0A    private long time;%0A%0A    /**%0A     * Constructs an instance of PostgresExplainResult without any data.%0A     *%0A     * @param q the Query to explain%0A     *%0A     */%0A    public DummyExplainResult(Query q) %7B%0A        time = q.getFrom().size() + q.getWhere().size();%0A    %7D%0A%0A    /**%0A     * Returns an estimate of the time it will take to complete the query.%0A     * This is the number of tables plus the number of constraints in%0A     * milliseconds.%0A     *%0A     * @return estimate of time in milliseconds%0A     */%0A    public long getTime() %7B%0A        return time;%0A    %7D%0A%0A%0A%7D%0A

Test class for DummyExplainResult