Class AbstractQueryMaker
java.lang.Object
org.apache.lucene.benchmark.byTask.feeds.AbstractQueryMaker
- All Implemented Interfaces:
QueryMaker
- Direct Known Subclasses:
EnwikiQueryMaker
,FileBasedQueryMaker
,ReutersQueryMaker
,SimpleQueryMaker
,SpatialFileQueryMaker
Abstract base query maker. Each query maker should just implement the
prepareQueries()
method.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreate the next querymakeQuery
(int size) Create the next query, of the given size.protected int
nextQnum()
protected abstract Query[]
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
-
qnum
protected int qnum -
queries
-
config
-
-
Constructor Details
-
AbstractQueryMaker
public AbstractQueryMaker()
-
-
Method Details
-
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
- Throws:
Exception
-
prepareQueries
- Throws:
Exception
-
setConfig
Description copied from interface:QueryMaker
Set the properties- Specified by:
setConfig
in interfaceQueryMaker
- Throws:
Exception
-
printQueries
Description copied from interface:QueryMaker
Print the queries- Specified by:
printQueries
in interfaceQueryMaker
-
makeQuery
Description copied from interface:QueryMaker
Create the next query- Specified by:
makeQuery
in interfaceQueryMaker
- Throws:
Exception
-
nextQnum
protected int nextQnum() -
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.
-