|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.benchmark.byTask.tasks.PerfTask org.apache.lucene.benchmark.byTask.tasks.ReadTask org.apache.lucene.benchmark.byTask.tasks.SearchTravTask
public class SearchTravTask
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 int |
traversalSize
|
Fields inherited from class org.apache.lucene.benchmark.byTask.tasks.PerfTask |
---|
logStep, NEW_LINE, params, stopNow |
Constructor Summary | |
---|---|
SearchTravTask(PerfRunData runData)
|
Method Summary | |
---|---|
QueryMaker |
getQueryMaker()
Return query maker used for this task. |
void |
setParams(String params)
Set the params of this task. |
boolean |
supportsParams()
Sub classes that supports parameters must override this method to return true. |
int |
traversalSize()
Specify the number of hits to traverse. |
boolean |
withRetrieve()
Return true if, with search & results traversing, docs should be retrieved. |
boolean |
withSearch()
Return true if search should be performed. |
boolean |
withTraverse()
Return true if, with search, results should be traversed. |
boolean |
withWarm()
Return true if warming should be performed. |
Methods inherited from class org.apache.lucene.benchmark.byTask.tasks.ReadTask |
---|
createCollector, doLogic, getBenchmarkHighlighter, getFieldsToHighlight, getSort, numHits, numToHighlight, retrieveDoc, setup, withCollector, withMaxScore, withScore |
Methods inherited from class org.apache.lucene.benchmark.byTask.tasks.PerfTask |
---|
clone, close, getBackgroundDeltaPriority, getDepth, getLogMessage, getName, getParams, getRunData, getRunInBackground, isDisableCounting, runAndMaybeStats, setDepth, setDisableCounting, setName, setRunInBackground, shouldNeverLogAtStart, shouldNotRecordStats, stopNow, tearDown, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int traversalSize
Constructor Detail |
---|
public SearchTravTask(PerfRunData runData)
Method Detail |
---|
public boolean withRetrieve()
ReadTask
withRetrieve
in class ReadTask
public boolean withSearch()
ReadTask
withSearch
in class ReadTask
public boolean withTraverse()
ReadTask
withTraverse
in class ReadTask
public boolean withWarm()
ReadTask
withWarm
in class ReadTask
public QueryMaker getQueryMaker()
ReadTask
getQueryMaker
in class ReadTask
public int traversalSize()
ReadTask
ReadTask.withTraverse()
is true. Must be greater than 0.
Read task calculates the traversal as: Math.min(hits.length(), traversalSize())
traversalSize
in class ReadTask
public void setParams(String params)
PerfTask
setParams
in class PerfTask
public boolean supportsParams()
PerfTask
supportsParams
in class PerfTask
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |