|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.benchmark.byTask.feeds.SimpleQueryMaker
A QueryMaker that makes queries for a collection created
using SimpleDocMaker
.
Constructor Summary | |
SimpleQueryMaker()
|
Method Summary | |
Query |
makeQuery()
Create the next query |
Query |
makeQuery(int size)
Create the next query, of the given size. |
protected Query[] |
prepareQueries()
Prepare the queries for this test. |
String |
printQueries()
Print the queries |
void |
resetInputs()
Reset inputs so that the test run would behave, input wise, as if it just started. |
void |
setConfig(Config config)
Set the properties |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleQueryMaker()
Method Detail |
protected Query[] prepareQueries() throws Exception
Exception
- if canot prepare the queries.public Query makeQuery() throws Exception
QueryMaker
makeQuery
in interface QueryMaker
Exception
public void setConfig(Config config) throws Exception
QueryMaker
setConfig
in interface QueryMaker
Exception
public void resetInputs()
QueryMaker
resetInputs
in interface QueryMaker
public String printQueries()
QueryMaker
printQueries
in interface QueryMaker
public Query makeQuery(int size) throws Exception
QueryMaker
makeQuery
in interface QueryMaker
size
- the size of the query - number of terms, etc.
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |