Class ComposedQuery
- java.lang.Object
-
- org.apache.lucene.queryparser.surround.query.SrndQuery
-
- org.apache.lucene.queryparser.surround.query.ComposedQuery
-
-
Constructor Summary
Constructors Constructor Description ComposedQuery(List<SrndQuery> qs, boolean operatorInfix, String opName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getBracketClose()
protected String
getBracketOpen()
int
getNrSubQueries()
String
getOperatorName()
protected String
getPrefixSeparator()
Iterator<SrndQuery>
getSubQueriesIterator()
SrndQuery
getSubQuery(int qn)
protected void
infixToString(StringBuilder r)
boolean
isFieldsSubQueryAcceptable()
boolean
isOperatorInfix()
List<Query>
makeLuceneSubQueriesField(String fn, BasicQueryFactory qf)
protected void
prefixToString(StringBuilder r)
protected void
recompose(List<SrndQuery> queries)
String
toString()
This method is used bySrndQuery.hashCode()
andSrndQuery.equals(Object)
, see LUCENE-2945.-
Methods inherited from class org.apache.lucene.queryparser.surround.query.SrndQuery
clone, equals, getWeight, getWeightOperator, getWeightString, hashCode, isWeighted, makeLuceneQueryField, makeLuceneQueryFieldNoBoost, setWeight, weightToString
-
-
-
-
Method Detail
-
getOperatorName
public String getOperatorName()
-
getNrSubQueries
public int getNrSubQueries()
-
getSubQuery
public SrndQuery getSubQuery(int qn)
-
isOperatorInfix
public boolean isOperatorInfix()
-
makeLuceneSubQueriesField
public List<Query> makeLuceneSubQueriesField(String fn, BasicQueryFactory qf)
-
toString
public String toString()
Description copied from class:SrndQuery
This method is used bySrndQuery.hashCode()
andSrndQuery.equals(Object)
, see LUCENE-2945.
-
getPrefixSeparator
protected String getPrefixSeparator()
-
getBracketOpen
protected String getBracketOpen()
-
getBracketClose
protected String getBracketClose()
-
infixToString
protected void infixToString(StringBuilder r)
-
prefixToString
protected void prefixToString(StringBuilder r)
-
isFieldsSubQueryAcceptable
public boolean isFieldsSubQueryAcceptable()
- Overrides:
isFieldsSubQueryAcceptable
in classSrndQuery
-
-