org.apache.lucene.queryParser.surround.query
Class ComposedQuery
java.lang.Object
org.apache.lucene.queryParser.surround.query.SrndQuery
org.apache.lucene.queryParser.surround.query.ComposedQuery
- All Implemented Interfaces:
- Cloneable
- Direct Known Subclasses:
- AndQuery, DistanceQuery, NotQuery, OrQuery
public abstract class ComposedQuery
- extends SrndQuery
ComposedQuery
public ComposedQuery(List qs,
boolean operatorInfix,
String opName)
recompose
protected void recompose(List queries)
getOperatorName
public String getOperatorName()
getSubQueriesIterator
public Iterator getSubQueriesIterator()
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()
- Specified by:
toString
in class SrndQuery
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 class SrndQuery