org.apache.lucene.benchmark.byTask.feeds

Interface QueryMaker

public interface QueryMaker

Create queries for the test.
Method Summary
QuerymakeQuery(int size)
Create the next query, of the given size.
QuerymakeQuery()
Create the next query
StringprintQueries()
Print the queries
voidresetInputs()
Reset inputs so that the test run would behave, input wise, as if it just started.
voidsetConfig(Config config)
Set the properties

Method Detail

makeQuery

public Query makeQuery(int size)
Create the next query, of the given size.

Parameters: size the size of the query - number of terms, etc.

Throws: if cannot make the query, or if size>0 was specified but this feature is not supported.

makeQuery

public Query makeQuery()
Create the next query

printQueries

public String printQueries()
Print the queries

resetInputs

public void resetInputs()
Reset inputs so that the test run would behave, input wise, as if it just started.

setConfig

public void setConfig(Config config)
Set the properties

Throws: Exception

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