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

SearchTravTask

public class SearchTravTask extends ReadTask
Search and Traverse task.

Note: This task reuses the reader if it is already open. Otherwise a reader is opened at start and closed at the end.

Takes optional param: traversal size (otherwise all results are traversed).

Other side effects: counts additional 1 (record) for each traversed hit.

Fields Summary
protected int
traversalSize
Constructors Summary
public SearchTravTask(org.apache.lucene.benchmark.byTask.PerfRunData runData)


     
    super(runData);
  
Methods Summary
public org.apache.lucene.benchmark.byTask.feeds.QueryMakergetQueryMaker()

    return getRunData().getQueryMaker(this);
  
public voidsetParams(java.lang.String params)

    super.setParams(params);
    traversalSize = (int)Float.parseFloat(params);
  
public booleansupportsParams()

    return true;
  
public inttraversalSize()

    return traversalSize;
  
public booleanwithRetrieve()

    return false;
  
public booleanwithSearch()

    return true;
  
public booleanwithTraverse()

    return true;
  
public booleanwithWarm()

    return false;