public class RequirementQuery extends Query
Query.ForEachQueryNode, Query.QTPBuilder, Query.QueryTermsParameter| Constructor and Description |
|---|
RequirementQuery()
An empty default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Deep copy this Query object
|
boolean |
getRequired()
Returns True if the subquery is REQUIRED to exist, or
false if it REQUIRED to NOT exit.
|
void |
getTermsOf(Class<? extends Query> c,
List<Query> alist,
boolean req)
Returns all the query terms, in subqueries that
are instances of a given class.
|
boolean |
obtainControls(Set<String> allowed,
Map<String,String> controls)
This object cannot contain any controls,
so this method will always return false.
|
void |
obtainQueryTerms(MatchingQueryTerms terms,
String field,
Boolean required,
Double weight) |
void |
obtainQueryTerms(Query.QueryTermsParameter parameters) |
String |
parseTree()
Returns the parse tree for the query as a string
|
void |
setRequired(boolean needed)
Sets whether the query is required or not.
|
String |
toString()
Returns a string representation of the query.
|
apply, applyTermPipeline, getTerms, obtainAllOf, setChildpublic void setRequired(boolean needed)
needed - boolean indicates whether the query is required or not.public boolean getRequired()
public String toString()
public void obtainQueryTerms(MatchingQueryTerms terms, String field, Boolean required, Double weight)
obtainQueryTerms in class Querypublic void obtainQueryTerms(Query.QueryTermsParameter parameters)
obtainQueryTerms in class Querypublic boolean obtainControls(Set<String> allowed, Map<String,String> controls)
obtainControls in class Querypublic void getTermsOf(Class<? extends Query> c, List<Query> alist, boolean req)
getTermsOf in class Queryc - Class a class of queries.alist - ArrayList the list of query terms.req - boolean indicates whether the subqueries
are required or not.Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow