org.apache.lucene.benchmark.byTask.tasks

Class 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.

Field Summary
protected inttraversalSize
Constructor Summary
SearchTravTask(PerfRunData runData)
Method Summary
QueryMakergetQueryMaker()
voidsetParams(String params)
booleansupportsParams()
inttraversalSize()
booleanwithRetrieve()
booleanwithSearch()
booleanwithTraverse()
booleanwithWarm()

Field Detail

traversalSize

protected int traversalSize

Constructor Detail

SearchTravTask

public SearchTravTask(PerfRunData runData)

Method Detail

getQueryMaker

public QueryMaker getQueryMaker()

setParams

public void setParams(String params)

supportsParams

public boolean supportsParams()

traversalSize

public int traversalSize()

withRetrieve

public boolean withRetrieve()

withSearch

public boolean withSearch()

withTraverse

public boolean withTraverse()

withWarm

public boolean withWarm()
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.