FileDocCategorySizeDatePackage
OpenReaderTask.javaAPI DocApache Lucene 2.1.01491Wed Feb 14 10:46:14 GMT 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;