Package org.intermine.sql.precompute
Class BestQueryStorer
- java.lang.Object
-
- org.intermine.sql.precompute.BestQuery
-
- org.intermine.sql.precompute.BestQueryStorer
-
public class BestQueryStorer extends BestQuery
Stores each query added.- Author:
- Andrew Varley
-
-
Constructor Summary
Constructors Constructor Description BestQueryStorer()
Constructs a BestQueryStorer
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(java.lang.String q)
Allows a Query to be added to this tracker.void
add(Query q)
Allows a Query to be added to this tracker.Query
getBestQuery()
Gets the best Query found so farjava.lang.String
getBestQueryString()
Gets the best query String found so farjava.util.Set<Query>
getQueries()
Gets the set of queries added to this object
-
-
-
Field Detail
-
queries
protected java.util.Set<Query> queries
-
-
Method Detail
-
add
public void add(Query q)
Allows a Query to be added to this tracker.
-
add
public void add(java.lang.String q)
Allows a Query to be added to this tracker.
-
getQueries
public java.util.Set<Query> getQueries()
Gets the set of queries added to this object- Returns:
- the set of queries
-
getBestQuery
public Query getBestQuery()
Gets the best Query found so far- Specified by:
getBestQuery
in classBestQuery
- Returns:
- the best Query, or null if no Queries added to this object
-
getBestQueryString
public java.lang.String getBestQueryString()
Gets the best query String found so far- Specified by:
getBestQueryString
in classBestQuery
- Returns:
- the best Query, or null if no Queries added to this object
-
-