Class LongToEnglishQueryMaker
java.lang.Object
org.apache.lucene.benchmark.byTask.feeds.LongToEnglishQueryMaker
- All Implemented Interfaces:
QueryMaker
Creates queries whose content is a spelled-out
long number starting from
Long.MIN_VALUE + 10.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate the next querymakeQuery(int size) Create the next query, of the given size.Print the queriesvoidReset inputs so that the test run would behave, input wise, as if it just started.voidSet the properties
-
Field Details
-
parser
-
-
Constructor Details
-
LongToEnglishQueryMaker
public LongToEnglishQueryMaker()
-
-
Method Details
-
makeQuery
Description 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
Description copied from interface:QueryMakerCreate the next query- Specified by:
makeQueryin interfaceQueryMaker- Throws:
Exception
-
setConfig
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
Description copied from interface:QueryMakerPrint the queries- Specified by:
printQueriesin interfaceQueryMaker
-