|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.benchmark.byTask.tasks.PerfTask
org.apache.lucene.benchmark.byTask.tasks.ReadTask
org.apache.lucene.benchmark.byTask.tasks.SearchTask
org.apache.lucene.benchmark.byTask.tasks.SearchWithCollectorTask
public class SearchWithCollectorTask
Does search w/ a custom collector
| Field Summary | |
|---|---|
protected String |
clnName
|
| Fields inherited from class org.apache.lucene.benchmark.byTask.tasks.PerfTask |
|---|
logStep, NEW_LINE, params, stopNow |
| Constructor Summary | |
|---|---|
SearchWithCollectorTask(PerfRunData runData)
|
|
| Method Summary | |
|---|---|
protected org.apache.lucene.search.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. |
| Methods inherited from class org.apache.lucene.benchmark.byTask.tasks.ReadTask |
|---|
doLogic, getBenchmarkHighlighter, getFieldsToHighlight, getSort, numHits, numToHighlight, retrieveDoc, traversalSize, 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, setParams, setRunInBackground, shouldNeverLogAtStart, shouldNotRecordStats, stopNow, supportsParams, tearDown, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String clnName
| Constructor Detail |
|---|
public SearchWithCollectorTask(PerfRunData runData)
| Method Detail |
|---|
public void setup()
throws Exception
PerfTaskPerfTask.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.
setup in class ReadTaskExceptionpublic boolean withCollector()
withCollector in class ReadTask
protected org.apache.lucene.search.Collector createCollector()
throws Exception
createCollector in class ReadTaskExceptionpublic QueryMaker getQueryMaker()
ReadTask
getQueryMaker in class SearchTaskpublic boolean withRetrieve()
ReadTask
withRetrieve in class SearchTaskpublic boolean withSearch()
ReadTask
withSearch in class SearchTaskpublic boolean withTraverse()
ReadTask
withTraverse in class SearchTaskpublic boolean withWarm()
ReadTask
withWarm in class SearchTask
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||