Class SrndQuery
- java.lang.Object
-
- org.apache.lucene.queryparser.surround.query.SrndQuery
-
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
ComposedQuery
,FieldsQuery
,SimpleTerm
public abstract class SrndQuery extends Object implements Cloneable
Lowest level base class for surround queries
-
-
Constructor Summary
Constructors Constructor Description SrndQuery()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description SrndQuery
clone()
boolean
equals(Object obj)
For subclasses ofSrndQuery
within the packageorg.apache.lucene.queryparser.surround.query
it is not necessary to override this method,float
getWeight()
String
getWeightOperator()
String
getWeightString()
int
hashCode()
For subclasses ofSrndQuery
within the packageorg.apache.lucene.queryparser.surround.query
it is not necessary to override this method,boolean
isFieldsSubQueryAcceptable()
boolean
isWeighted()
Query
makeLuceneQueryField(String fieldName, BasicQueryFactory qf)
abstract Query
makeLuceneQueryFieldNoBoost(String fieldName, BasicQueryFactory qf)
void
setWeight(float w)
abstract String
toString()
This method is used byhashCode()
andequals(Object)
, see LUCENE-2945.protected void
weightToString(StringBuilder r)
-
-
-
Method Detail
-
setWeight
public void setWeight(float w)
-
isWeighted
public boolean isWeighted()
-
getWeight
public float getWeight()
-
getWeightString
public String getWeightString()
-
getWeightOperator
public String getWeightOperator()
-
weightToString
protected void weightToString(StringBuilder r)
-
makeLuceneQueryField
public Query makeLuceneQueryField(String fieldName, BasicQueryFactory qf)
-
makeLuceneQueryFieldNoBoost
public abstract Query makeLuceneQueryFieldNoBoost(String fieldName, BasicQueryFactory qf)
-
toString
public abstract String toString()
This method is used byhashCode()
andequals(Object)
, see LUCENE-2945.
-
isFieldsSubQueryAcceptable
public boolean isFieldsSubQueryAcceptable()
-
hashCode
public int hashCode()
For subclasses ofSrndQuery
within the packageorg.apache.lucene.queryparser.surround.query
it is not necessary to override this method,- Overrides:
hashCode
in classObject
- See Also:
toString()
-
equals
public boolean equals(Object obj)
For subclasses ofSrndQuery
within the packageorg.apache.lucene.queryparser.surround.query
it is not necessary to override this method,- Overrides:
equals
in classObject
- See Also:
toString()
-
-