Class BasicQueryFactory
- java.lang.Object
-
- org.apache.lucene.queryparser.surround.query.BasicQueryFactory
-
public class BasicQueryFactory extends java.lang.Object
Factory for creating basic term queries
-
-
Constructor Summary
Constructors Constructor Description BasicQueryFactory()
BasicQueryFactory(int maxBasicQueries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Two BasicQueryFactory's are equal when they generate the same types of basic queries, or both cannot generate queries anymore.int
getMaxBasicQueries()
int
getNrQueriesMade()
int
hashCode()
SpanTermQuery
newSpanTermQuery(Term term)
TermQuery
newTermQuery(Term term)
java.lang.String
toString()
-
-
-
Method Detail
-
getNrQueriesMade
public int getNrQueriesMade()
-
getMaxBasicQueries
public int getMaxBasicQueries()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
newTermQuery
public TermQuery newTermQuery(Term term) throws TooManyBasicQueries
- Throws:
TooManyBasicQueries
-
newSpanTermQuery
public SpanTermQuery newSpanTermQuery(Term term) throws TooManyBasicQueries
- Throws:
TooManyBasicQueries
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Two BasicQueryFactory's are equal when they generate the same types of basic queries, or both cannot generate queries anymore.- Overrides:
equals
in classjava.lang.Object
-
-