Methods Summary |
---|
public org.apache.lucene.search.Query | makeQuery()
return queries[nextQnum()];
|
public org.apache.lucene.search.Query | makeQuery(int size)
throw new Exception(this+".makeQuery(int size) is not supported!");
|
protected synchronized int | nextQnum()
int res = qnum;
qnum = (qnum+1) % queries.length;
return res;
|
protected abstract org.apache.lucene.search.Query[] | prepareQueries()
|
public java.lang.String | printQueries()
String newline = System.getProperty("line.separator");
StringBuffer sb = new StringBuffer();
if (queries != null) {
for (int i = 0; i < queries.length; i++) {
sb.append(i+". "+ Format.simpleName(queries[i].getClass())+" - "+queries[i].toString());
sb.append(newline);
}
}
return sb.toString();
|
public void | resetInputs()
qnum = 0;
|
public void | setConfig(org.apache.lucene.benchmark.byTask.utils.Config config)
this.config = config;
queries = prepareQueries();
|