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

OptimizeTask

public class OptimizeTask extends PerfTask
Optimize the index.
Other side effects: none.

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

    super(runData);
  
Methods Summary
public intdoLogic()

    IndexWriter iw = getRunData().getIndexWriter();
    iw.optimize();
    //System.out.println("optimize called");
    return 1;