FileDocCategorySizeDatePackage
CloseIndexTask.javaAPI DocApache Lucene 2.2.01411Sat Jun 16 22:20:58 BST 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;