## org.apache.lucene.benchmark.byTask.feeds
Class SimpleQueryMaker

    java.lang.Object
      org.apache.lucene.benchmark.byTask.feeds.AbstractQueryMaker
          org.apache.lucene.benchmark.byTask.feeds.SimpleQueryMaker

All Implemented Interfaces:
  QueryMaker

Direct Known Subclasses:
  SimpleSloppyPhraseQueryMaker

    public class SimpleQueryMaker

extends AbstractQueryMaker
implements QueryMaker

A QueryMaker that makes queries for a collection created using `SingleDocSource`.

Field Summary

Fields inherited from class org.apache.lucene.benchmark.byTask.feeds.AbstractQueryMaker
`config, qnum, queries`

Constructor Summary
`SimpleQueryMaker()`

Method Summary
`protected org.apache.lucene.search.Query[]` `prepareQueries()` Prepare the queries for this test.

Methods inherited from class org.apache.lucene.benchmark.byTask.feeds.AbstractQueryMaker
`makeQuery, makeQuery, nextQnum, printQueries, resetInputs, setConfig`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods inherited from interface org.apache.lucene.benchmark.byTask.feeds.QueryMaker
`makeQuery, makeQuery, printQueries, resetInputs, setConfig`

Constructor Detail

### SimpleQueryMaker

    public SimpleQueryMaker()

Method Detail

### prepareQueries

    protected org.apache.lucene.search.Query[] prepareQueries()
                                                       throws java.lang.Exception

  Prepare the queries for this test. Extending classes can override this method for preparing different queries.

  Specified by:
    `prepareQueries` in class `AbstractQueryMaker`
  Returns:
    prepared queries.
  Throws:
    `java.lang.Exception` - if cannot prepare the queries.

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.