public class SearchWithCollectorTask extends SearchTask
Constructor and Description |
---|
SearchWithCollectorTask(PerfRunData runData) |
Modifier and Type | Method and Description |
---|---|
protected Collector |
createCollector() |
QueryMaker |
getQueryMaker()
Return query maker used for this task.
|
void |
setup()
Task setup work that should not be measured for that specific task.
|
boolean |
withCollector() |
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.
|
doLogic, getBenchmarkHighlighter, getFieldsToHighlight, getSort, numHits, numToHighlight, retrieveDoc, traversalSize, withMaxScore, withScore
clone, close, getBackgroundDeltaPriority, getDepth, getLogMessage, getName, getParams, getRunData, getRunInBackground, isDisableCounting, runAndMaybeStats, setDepth, setDisableCounting, setName, setParams, setRunInBackground, shouldNeverLogAtStart, shouldNotRecordStats, stopNow, supportsParams, tearDown, toString
protected String clnName
public SearchWithCollectorTask(PerfRunData runData)
public void setup() throws Exception
PerfTask
PerfTask.doLogic()
to this method. Only the work done in PerfTask.doLogic()
is measured for this task. Notice that higher level (sequence) tasks
containing this task would then measure larger time than the sum of their
contained tasks.public boolean withCollector()
withCollector
in class ReadTask
protected Collector createCollector() throws Exception
createCollector
in class ReadTask
Exception
public QueryMaker getQueryMaker()
ReadTask
getQueryMaker
in class SearchTask
public boolean withRetrieve()
ReadTask
withRetrieve
in class SearchTask
public boolean withSearch()
ReadTask
withSearch
in class SearchTask
public boolean withTraverse()
ReadTask
withTraverse
in class SearchTask
public boolean withWarm()
ReadTask
withWarm
in class SearchTask