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-outlong
number starting fromLong.MIN_VALUE
+ 10
-
-
Field Summary
Fields Modifier and Type Field Description protected QueryParser
parser
-
Constructor Summary
Constructors Constructor Description LongToEnglishQueryMaker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Query
makeQuery()
Create the next queryQuery
makeQuery(int size)
Create the next query, of the given size.String
printQueries()
Print the queriesvoid
resetInputs()
Reset inputs so that the test run would behave, input wise, as if it just started.void
setConfig(Config config)
Set the properties
-
-
-
Field Detail
-
parser
protected QueryParser parser
-
-
Method Detail
-
makeQuery
public Query makeQuery(int size) throws Exception
Description copied from interface:QueryMaker
Create the next query, of the given size.- Specified by:
makeQuery
in 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 Query makeQuery() throws Exception
Description copied from interface:QueryMaker
Create the next query- Specified by:
makeQuery
in interfaceQueryMaker
- Throws:
Exception
-
setConfig
public void setConfig(Config config) throws Exception
Description copied from interface:QueryMaker
Set the properties- Specified by:
setConfig
in interfaceQueryMaker
- Throws:
Exception
-
resetInputs
public void resetInputs()
Description copied from interface:QueryMaker
Reset inputs so that the test run would behave, input wise, as if it just started.- Specified by:
resetInputs
in interfaceQueryMaker
-
printQueries
public String printQueries()
Description copied from interface:QueryMaker
Print the queries- Specified by:
printQueries
in interfaceQueryMaker
-
-