Package org.intermine.sql.query
Class DummyExplainResult
- java.lang.Object
-
- org.intermine.sql.query.ExplainResult
-
- org.intermine.sql.query.DummyExplainResult
-
public class DummyExplainResult extends ExplainResult
Subclass of ExplainResult not associated with a database. The amount of time this query will take is the number of tables plus the number of constraints in milliseconds.- Author:
- Andrew Varley
-
-
Field Summary
-
Fields inherited from class org.intermine.sql.query.ExplainResult
complete, estimatedRows, rows, start, width
-
-
Constructor Summary
Constructors Constructor Description DummyExplainResult(Query q)
Constructs an instance of PostgresExplainResult without any data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getTime()
Returns an estimate of the time it will take to complete the query.-
Methods inherited from class org.intermine.sql.query.ExplainResult
equals, getComplete, getEstimatedRows, getInstance, getInstance, getInstance, getRows, getStart, getWidth, hashCode, setEstimatedRows, toString
-
-
-
-
Constructor Detail
-
DummyExplainResult
public DummyExplainResult(Query q)
Constructs an instance of PostgresExplainResult without any data.- Parameters:
q
- the Query to explain
-
-
Method Detail
-
getTime
public long getTime()
Returns an estimate of the time it will take to complete the query. This is the number of tables plus the number of constraints in milliseconds.- Overrides:
getTime
in classExplainResult
- Returns:
- estimate of time in milliseconds
-
-