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