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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate the next querymakeQuery(int size) Create the next query, of the given size.protected intnextQnum()protected abstract Query[]Print the queriesvoidReset inputs so that the test run would behave, input wise, as if it just started.voidSet the properties
-
Field Details
-
qnum
protected int qnum -
queries
-
config
-
-
Constructor Details
-
AbstractQueryMaker
public AbstractQueryMaker()
-
-
Method Details
-
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- Throws:
Exception
-
prepareQueries
- Throws:
Exception
-
setConfig
Description copied from interface:QueryMakerSet the properties- Specified by:
setConfigin interfaceQueryMaker- Throws:
Exception
-
printQueries
Description copied from interface:QueryMakerPrint the queries- Specified by:
printQueriesin interfaceQueryMaker
-
makeQuery
Description copied from interface:QueryMakerCreate the next query- Specified by:
makeQueryin interfaceQueryMaker- Throws:
Exception
-
nextQnum
protected int nextQnum() -
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.
-