Interface QueryMaker
-
- All Known Implementing Classes:
AbstractQueryMaker,EnwikiQueryMaker,FileBasedQueryMaker,LongToEnglishQueryMaker,ReutersQueryMaker,SimpleQueryMaker,SimpleSloppyPhraseQueryMaker
public interface QueryMakerCreate queries for the test.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.lucene.search.QuerymakeQuery()Create the next queryorg.apache.lucene.search.QuerymakeQuery(int size)Create the next query, of the given size.StringprintQueries()Print the queriesvoidresetInputs()Reset inputs so that the test run would behave, input wise, as if it just started.voidsetConfig(Config config)Set the properties
-
-
-
Method Detail
-
makeQuery
org.apache.lucene.search.Query makeQuery(int size) throws ExceptionCreate the next query, of the given size.- Parameters:
size- the size of the query - number of terms, etc.- Throws:
Exception- if cannot make the query, or if size>0 was specified but this feature is not supported.
-
makeQuery
org.apache.lucene.search.Query makeQuery() throws ExceptionCreate the next query- Throws:
Exception
-
resetInputs
void resetInputs()
Reset inputs so that the test run would behave, input wise, as if it just started.
-
printQueries
String printQueries()
Print the queries
-
-