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

CloseIndexTask

public class CloseIndexTask extends PerfTask
Close index writer. Other side effects: index writer object in perfRunData is nullified.

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

    super(runData);
  
Methods Summary
public intdoLogic()

    IndexWriter iw = getRunData().getIndexWriter();
    if (iw!=null) {
      iw.close();
    }
    getRunData().setIndexWriter(null);
    return 1;