|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.intermine.api.bag.BagQuery
public class BagQuery
A class encapsulating a query used to create a bag from a collection of input identifiers.
| Constructor Summary | |
|---|---|
BagQuery(BagQueryConfig bagQueryConfig,
Model model,
java.util.Map classKeys,
java.lang.String type)
Create a new BagQuery object for the default query - search for all key fields of the given class. |
|
BagQuery(BagQueryConfig bagQueryConfig,
Model model,
java.lang.String queryString,
java.lang.String message,
java.lang.String packageName,
boolean matchesAreIssues)
Create a new BagQuery object. |
|
| Method Summary | |
|---|---|
java.lang.String |
getMessage()
Return the message that was passed to the constructor. |
Query |
getQuery(java.util.Collection bag,
java.lang.String extraFieldValue)
Return the Query that was passed to the constructor. |
Query |
getQueryForWildcards(java.util.Collection<java.lang.String> bag,
java.lang.String extraFieldValue)
Return a Query to fetch bag contents for wildcards. |
boolean |
matchesAreIssues()
Return the flag passed to the constructor. |
java.lang.String |
toString()
|
void |
traverseConstraint(Constraint con,
java.util.Map<QueryEvaluable,ConstraintSet> nodes)
Finds all BagConstraints in a Constraint, and places the QueryEvaluable and the containing ConstraintSet into the given Map. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BagQuery(BagQueryConfig bagQueryConfig,
Model model,
java.lang.String queryString,
java.lang.String message,
java.lang.String packageName,
boolean matchesAreIssues)
bagQueryConfig - the configuration to usemodel - the Model for the queryqueryString - the query IQLmessage - the message from the bag-queries.xml describing this querypackageName - the package namematchesAreIssues - true if matches for this bag query should be treated as issues (aka
low quality matches)
public BagQuery(BagQueryConfig bagQueryConfig,
Model model,
java.util.Map classKeys,
java.lang.String type)
bagQueryConfig - the configuration to usemodel - the Model for the queryclassKeys - map of class key fieldstype - the qualified class name of the type to build query for| Method Detail |
|---|
public Query getQuery(java.util.Collection bag,
java.lang.String extraFieldValue)
throws java.lang.ClassNotFoundException
bag - the collection to use to constrain the queryextraFieldValue - the value used if any extra constraint is configured
java.lang.ClassNotFoundException - if class given by type not found
public Query getQueryForWildcards(java.util.Collection<java.lang.String> bag,
java.lang.String extraFieldValue)
throws java.lang.ClassNotFoundException
bag - the Collection of strings to use to constrain the queryextraFieldValue - the value used if any extra constraint is configured
java.lang.ClassNotFoundException - if class specified by type not found
public void traverseConstraint(Constraint con,
java.util.Map<QueryEvaluable,ConstraintSet> nodes)
con - the Constraint to searchnodes - the Map to put results intopublic boolean matchesAreIssues()
public java.lang.String getMessage()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||