FileDocCategorySizeDatePackage
OpenReaderTask.javaAPI DocApache Lucene 2.2.01452Sat Jun 16 22:20:58 BST 2007org.apache.lucene.benchmark.byTask.tasks

OpenReaderTask

public class OpenReaderTask extends PerfTask
Open an index reader.
Other side effects: index redaer object in perfRunData is set.

Fields Summary
Constructors Summary
public OpenReaderTask(org.apache.lucene.benchmark.byTask.PerfRunData runData)

    super(runData);
  
Methods Summary
public intdoLogic()

    Directory dir = getRunData().getDirectory();
    IndexReader reader = IndexReader.open(dir);
    getRunData().setIndexReader(reader);
    return 1;