|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.egothor.core.query.Query
org.egothor.query.QProx
public class QProx
The QProx object represents an digit operator in a query. The user has made a query for documents containing termA within x words of termB.
| Field Summary |
|---|
| Fields inherited from class org.egothor.core.query.Query |
|---|
MODEL_BOOLEAN, MODEL_FUZZY_M, MODEL_VECTOR |
| Constructor Summary | |
|---|---|
QProx(QTerm a,
QTerm b)
Constructor for the QProx object. |
|
QProx(QTerm a,
QTerm b,
java.lang.String num)
Constructor for the QProx object. |
|
| Method Summary | |
|---|---|
void |
addTerms(java.util.HashSet<Token> to)
Add the given HashSet of terms to this Query. |
Query |
applyCWI(CWI cwi)
Return a QProx object with the given CWI applied to both sides of the query. |
Runner |
attach(Rider r)
Return an ProxRunner which is the binary representation of this clausula. |
org.w3c.dom.Node |
explain(org.w3c.dom.Document doc)
Description of the Method |
java.lang.String |
getNodeName()
Gets the nodeName attribute of the QProx object |
void |
setModel(int model)
Sets the model attribute of the QProx object |
void |
setProhibited()
Sets the prohibited attribute of the QProx object |
void |
setRequired()
Sets the required attribute of the QProx object |
java.lang.String |
toString()
Return a string representation of this object. |
| Methods inherited from class org.egothor.core.query.Query |
|---|
getExcluded, getModel, getProhibited, getRequired, getUnknown, isRequiredOrProhibited, setExcluded, setUnknown |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public QProx(QTerm a,
QTerm b,
java.lang.String num)
a - the first queryb - the second querynum - the allowable distance between a and b
public QProx(QTerm a,
QTerm b)
a - the first queryb - the second query| Method Detail |
|---|
public void setModel(int model)
setModel in class Querymodel - The new model valuepublic void setProhibited()
setProhibited in class Querypublic void setRequired()
setRequired in class Querypublic java.lang.String getNodeName()
getNodeName in class Querypublic org.w3c.dom.Node explain(org.w3c.dom.Document doc)
explain in class Querydoc - Description of the Parameter
public java.lang.String toString()
toString in class java.lang.Objectpublic Runner attach(Rider r)
attach in class Queryr - the Rider
public void addTerms(java.util.HashSet<Token> to)
addTerms in class Queryto - a HashSet containing the terms to be addedpublic Query applyCWI(CWI cwi)
applyCWI in class Querycwi - the CWI
this
object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||