FileDocCategorySizeDatePackage
CloseReaderTask.javaAPI DocApache Lucene 2.1.01526Wed Feb 14 10:46:14 GMT 2007org.apache.lucene.benchmark.byTask.tasks

CloseReaderTask

public class CloseReaderTask extends PerfTask
Close index reader. Other side effects: index reader in perfRunData is nullified. This would cause read related tasks to reopen their own reader.

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

    super(runData);
  
Methods Summary
public intdoLogic()

    IndexReader reader= getRunData().getIndexReader();
    if (reader!=null) {
      reader.close();
    }
    getRunData().setIndexReader(null);
    return 1;