public abstract class AbstractQueryMaker extends java.lang.Object implements QueryMaker
prepareQueries() method.| Modifier and Type | Field and Description |
|---|---|
protected Config |
config |
protected int |
qnum |
protected org.apache.lucene.search.Query[] |
queries |
| Constructor and Description |
|---|
AbstractQueryMaker() |
| Modifier and Type | Method and Description |
|---|---|
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
|
protected int qnum
protected org.apache.lucene.search.Query[] queries
protected Config config
public void resetInputs()
QueryMakerresetInputs in interface QueryMakerprotected abstract org.apache.lucene.search.Query[] prepareQueries()
throws java.lang.Exception
java.lang.Exceptionpublic void setConfig(Config config) throws java.lang.Exception
QueryMakersetConfig in interface QueryMakerjava.lang.Exceptionpublic java.lang.String printQueries()
QueryMakerprintQueries in interface QueryMakerpublic org.apache.lucene.search.Query makeQuery()
throws java.lang.Exception
QueryMakermakeQuery in interface QueryMakerjava.lang.Exceptionprotected int nextQnum()
public org.apache.lucene.search.Query makeQuery(int size)
throws java.lang.Exception
QueryMakermakeQuery in interface QueryMakersize - the size of the query - number of terms, etc.java.lang.Exception - if cannot make the query, or if size>0 was specified but this feature is not supported.Copyright © 2000-2022 Apache Software Foundation. All Rights Reserved.