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

CountingSearchTestTask

public class CountingSearchTestTask extends SearchTask
Test Search task which counts number of searches.

Fields Summary
public static int
numSearches
Constructors Summary
public CountingSearchTestTask(org.apache.lucene.benchmark.byTask.PerfRunData runData)

 

     
    super(runData);
  
Methods Summary
public intdoLogic()

    int res = super.doLogic();
    incrNumSearches();
    return res;
  
private static synchronized voidincrNumSearches()

    numSearches++;