|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.benchmark.byTask.feeds.AbstractQueryMaker
public abstract class AbstractQueryMaker
Abstract base query maker.
Each query maker should just implement the prepareQueries()
method.
Field Summary | |
---|---|
protected Config |
config
|
protected int |
qnum
|
protected org.apache.lucene.search.Query[] |
queries
|
Constructor Summary | |
---|---|
AbstractQueryMaker()
|
Method Summary | |
---|---|
org.apache.lucene.search.Query |
makeQuery()
Create the next query |
org.apache.lucene.search.Query |
makeQuery(int size)
Create the next query, of the given size. |
protected int |
nextQnum()
|
protected abstract org.apache.lucene.search.Query[] |
prepareQueries()
|
java.lang.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 |
Field Detail |
---|
protected int qnum
protected org.apache.lucene.search.Query[] queries
protected Config config
Constructor Detail |
---|
public AbstractQueryMaker()
Method Detail |
---|
public void resetInputs()
QueryMaker
resetInputs
in interface QueryMaker
protected abstract org.apache.lucene.search.Query[] prepareQueries() throws java.lang.Exception
java.lang.Exception
public void setConfig(Config config) throws java.lang.Exception
QueryMaker
setConfig
in interface QueryMaker
java.lang.Exception
public java.lang.String printQueries()
QueryMaker
printQueries
in interface QueryMaker
public org.apache.lucene.search.Query makeQuery() throws java.lang.Exception
QueryMaker
makeQuery
in interface QueryMaker
java.lang.Exception
protected int nextQnum()
public org.apache.lucene.search.Query makeQuery(int size) throws java.lang.Exception
QueryMaker
makeQuery
in interface QueryMaker
size
- the size of the query - number of terms, etc.
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |