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 queriesvoid
Reset inputs so that the test run would behave, input wise, as if it just started.void
Set the properties
-
Field Details
-
parser
-
-
Constructor Details
-
LongToEnglishQueryMaker
public LongToEnglishQueryMaker()
-
-
Method Details
-
makeQuery
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
Description copied from interface:QueryMaker
Create the next query- Specified by:
makeQuery
in interfaceQueryMaker
- Throws:
Exception
-
setConfig
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
Description copied from interface:QueryMaker
Print the queries- Specified by:
printQueries
in interfaceQueryMaker
-