|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terrier.querying.parser.Query
org.terrier.querying.parser.MultiTermQuery
org.terrier.querying.parser.DisjunctiveQuery
public class DisjunctiveQuery
Models a disjunctive choice in single term queries in a query.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.terrier.querying.parser.Query |
|---|
Query.ForEachQueryNode |
| Field Summary |
|---|
| Fields inherited from class org.terrier.querying.parser.MultiTermQuery |
|---|
prefix, suffix, v |
| Fields inherited from class org.terrier.querying.parser.Query |
|---|
child, tmpSTQ |
| Constructor Summary | |
|---|---|
DisjunctiveQuery()
default constructor |
|
DisjunctiveQuery(java.lang.String[] alternatives)
Constructor |
|
| Method Summary | |
|---|---|
double |
getWeight()
Returns the weight of the disjunctive "term". |
void |
obtainAllOf(java.lang.Class<? extends Query> c,
java.util.List<Query> a)
Returns all the queries of the specified class |
void |
obtainQueryTerms(MatchingQueryTerms terms)
Prepares the query for matching by transforming the query objects to a set of query terms. |
void |
resetActive()
reset active index |
void |
setActive(int _activeIndex)
set active index |
void |
setWeight(double w)
Sets the weight of the disjunctive "term". |
| Methods inherited from class org.terrier.querying.parser.MultiTermQuery |
|---|
add, add, apply, applyTermPipeline, clone, getNumberOfTerms, getTerms, getTermsOf, obtainControls, obtainQueryTerms, parseTree, replace, toString |
| Methods inherited from class org.terrier.querying.parser.Query |
|---|
setChild |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DisjunctiveQuery(java.lang.String[] alternatives)
alternatives - public DisjunctiveQuery()
| Method Detail |
|---|
public void setWeight(double w)
w - double the weight of the disjunctive "term".public double getWeight()
public void resetActive()
public void setActive(int _activeIndex)
_activeIndex -
public void obtainAllOf(java.lang.Class<? extends Query> c,
java.util.List<Query> a)
Query
obtainAllOf in class MultiTermQuerypublic void obtainQueryTerms(MatchingQueryTerms terms)
MultiTermQuery
obtainQueryTerms in class MultiTermQueryterms - MatchingQueryTerms the object which holds the
query terms and their modifiers.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||