Package org.terrier.querying.parser

Examples of org.terrier.querying.parser.RequirementQuery


    ArrayList<Query> requirements = new ArrayList<Query>();
    q.obtainAllOf(RequirementQuery.class, requirements);
    ArrayList<Query> terms = new ArrayList<Query>();
    for(Query g : requirements)
    {
      RequirementQuery r = (RequirementQuery)g;
      if (! r.getRequired())
        r.obtainAllOf(SingleTermQuery.class, terms);
    }
    HashSet<String> rtr = new HashSet<String>(terms.size());
    for(Query g : terms)
    {
      SingleTermQuery queryTerm = (SingleTermQuery)g;
View Full Code Here

TOP

Related Classes of org.terrier.querying.parser.RequirementQuery

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.