Class ComposedQuery
- java.lang.Object
-
- org.apache.lucene.queryparser.surround.query.SrndQuery
-
- org.apache.lucene.queryparser.surround.query.ComposedQuery
-
- All Implemented Interfaces:
java.lang.Cloneable
- Direct Known Subclasses:
AndQuery
,DistanceQuery
,NotQuery
,OrQuery
public abstract class ComposedQuery extends SrndQuery
Base class for composite queries (such as AND/OR/NOT)
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.queryparser.surround.query.SrndQuery
theEmptyLcnQuery
-
-
Constructor Summary
Constructors Constructor Description ComposedQuery(java.util.List<SrndQuery> qs, boolean operatorInfix, java.lang.String opName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getNrSubQueries()
java.lang.String
getOperatorName()
java.util.Iterator<SrndQuery>
getSubQueriesIterator()
SrndQuery
getSubQuery(int qn)
boolean
isFieldsSubQueryAcceptable()
boolean
isOperatorInfix()
java.util.List<Query>
makeLuceneSubQueriesField(java.lang.String fn, BasicQueryFactory qf)
java.lang.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
-
-
-
-
Constructor Detail
-
ComposedQuery
public ComposedQuery(java.util.List<SrndQuery> qs, boolean operatorInfix, java.lang.String opName)
-
-
Method Detail
-
getOperatorName
public java.lang.String getOperatorName()
-
getSubQueriesIterator
public java.util.Iterator<SrndQuery> getSubQueriesIterator()
-
getNrSubQueries
public int getNrSubQueries()
-
getSubQuery
public SrndQuery getSubQuery(int qn)
-
isOperatorInfix
public boolean isOperatorInfix()
-
makeLuceneSubQueriesField
public java.util.List<Query> makeLuceneSubQueriesField(java.lang.String fn, BasicQueryFactory qf)
-
toString
public java.lang.String toString()
Description copied from class:SrndQuery
This method is used bySrndQuery.hashCode()
andSrndQuery.equals(Object)
, see LUCENE-2945.
-
isFieldsSubQueryAcceptable
public boolean isFieldsSubQueryAcceptable()
- Overrides:
isFieldsSubQueryAcceptable
in classSrndQuery
-
-