Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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

    java.lang.Object
      org.apache.lucene.benchmark.byTask.feeds.LongToEnglishQueryMaker

All Implemented Interfaces:
  QueryMaker

    public class LongToEnglishQueryMaker

extends Object
implements QueryMaker

Creates queries whose content is a spelled-out `long` number starting from ``Long.MIN_VALUE` + 10`.

Field Summary
`protected org.apache.lucene.queryParser.QueryParser` | `parser`

Constructor Summary
`LongToEnglishQueryMaker()`

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.
`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

### parser

    protected org.apache.lucene.queryParser.QueryParser parser

Constructor Detail

### LongToEnglishQueryMaker

    public LongToEnglishQueryMaker()

Method Detail

### makeQuery

    public org.apache.lucene.search.Query makeQuery(int size)
                                             throws Exception

  Description copied from interface: `QueryMaker`
  Create the next query, of the given size.

  Specified by:
    `makeQuery` in interface `QueryMaker`
  Parameters:
    `size` - the size of the query - number of terms, etc.
  Throws:
    `Exception` - if cannot make the query, or if size>0 was specified but this feature is not supported.

### makeQuery

    public org.apache.lucene.search.Query makeQuery()
                                             throws Exception

  Description copied from interface: `QueryMaker`
  Create the next query

  Specified by:
    `makeQuery` in interface `QueryMaker`
  Throws:
    `Exception`

### setConfig

    public void setConfig(Config config)
                   throws Exception

  Description copied from interface: `QueryMaker`
  Set the properties

  Specified by:
    `setConfig` in interface `QueryMaker`
  Throws:
    `Exception`

### resetInputs

    public void resetInputs()

  Description copied from interface: `QueryMaker`
  Reset inputs so that the test run would behave, input wise, as if it just started.

  Specified by:
    `resetInputs` in interface `QueryMaker`

### printQueries

    public String printQueries()

  Description copied from interface: `QueryMaker`
  Print the queries

  Specified by:
    `printQueries` in interface `QueryMaker`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD