org.apache.lucene.benchmark.byTask.tasks
public abstract class ReadTask extends PerfTask
Note: All ReadTasks reuse the reader if it is already open. Otherwise a reader is opened at start and closed at the end.
Other side effects: none.
Constructor Summary | |
---|---|
ReadTask(PerfRunData runData) |
Method Summary | |
---|---|
int | doLogic() |
abstract QueryMaker | getQueryMaker()
Return query maker used for this task. |
protected int | retrieveDoc(IndexReader ir, int id) |
int | traversalSize()
Specify the number of hits to traverse. |
abstract boolean | withRetrieve()
Return true if, with search & results traversing, docs should be retrieved. |
abstract boolean | withSearch()
Return true if search should be performed. |
abstract boolean | withTraverse()
Return true if, with search, results should be traversed. |
abstract boolean | withWarm()
Return true if warming should be performed. |
Returns: Integer.MAX_VALUE