Class LongToEnglishQueryMaker
- java.lang.Object
-
- org.apache.lucene.benchmark.byTask.feeds.LongToEnglishQueryMaker
-
- All Implemented Interfaces:
QueryMaker
public class LongToEnglishQueryMaker extends Object implements QueryMaker
Creates queries whose content is a spelled-outlongnumber starting from.Long.MIN_VALUE+ 10
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.lucene.queryParser.QueryParserparser
-
Constructor Summary
Constructors Constructor Description LongToEnglishQueryMaker()
-
Method Summary
All Methods Instance Methods Concrete 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
public org.apache.lucene.search.Query makeQuery(int size) throws ExceptionDescription copied from interface:QueryMakerCreate the next query, of the given size.- Specified by:
makeQueryin interfaceQueryMaker- 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
public org.apache.lucene.search.Query makeQuery() throws ExceptionDescription copied from interface:QueryMakerCreate the next query- Specified by:
makeQueryin interfaceQueryMaker- Throws:
Exception
-
setConfig
public void setConfig(Config config) throws Exception
Description copied from interface:QueryMakerSet the properties- Specified by:
setConfigin interfaceQueryMaker- Throws:
Exception
-
resetInputs
public void resetInputs()
Description copied from interface:QueryMakerReset inputs so that the test run would behave, input wise, as if it just started.- Specified by:
resetInputsin interfaceQueryMaker
-
printQueries
public String printQueries()
Description copied from interface:QueryMakerPrint the queries- Specified by:
printQueriesin interfaceQueryMaker
-
-