Class SearchWithCollectorTask
java.lang.Object
org.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
- All Implemented Interfaces:
Cloneable
Does search w/ a custom collector
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CollectorManager<?, ?> Return query maker used for this task.voidsetup()Task setup work that should not be measured for that specific task.booleanbooleanReturn true if, with search and results traversing, docs should be retrieved.booleanReturn true if search should be performed.booleanReturn true if, with search, results should be traversed.booleanwithWarm()Return true if warming should be performed.Methods inherited from class org.apache.lucene.benchmark.byTask.tasks.ReadTask
doLogic, getSort, numHits, retrieveDoc, traversalSize, withTopDocs, withTotalHitsMethods inherited from class org.apache.lucene.benchmark.byTask.tasks.PerfTask
clone, close, getAlgLineNum, getBackgroundDeltaPriority, getDepth, getLogMessage, getName, getParams, getRunData, getRunInBackground, isDisableCounting, runAndMaybeStats, setAlgLineNum, setDepth, setDisableCounting, setName, setParams, setRunInBackground, shouldNeverLogAtStart, shouldNotRecordStats, stopNow, supportsParams, tearDown, toString
-
Field Details
-
clnName
-
-
Constructor Details
-
SearchWithCollectorTask
-
-
Method Details
-
setup
Description copied from class:PerfTaskTask setup work that should not be measured for that specific task. By default it does nothing, but tasks can implement this, moving work fromPerfTask.doLogic()to this method. Only the work done inPerfTask.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. -
withCollector
public boolean withCollector()- Overrides:
withCollectorin classReadTask
-
createCollectorManager
- Overrides:
createCollectorManagerin classReadTask- Throws:
Exception
-
getQueryMaker
Description copied from class:ReadTaskReturn query maker used for this task.- Overrides:
getQueryMakerin classSearchTask
-
withRetrieve
public boolean withRetrieve()Description copied from class:ReadTaskReturn true if, with search and results traversing, docs should be retrieved.- Overrides:
withRetrievein classSearchTask
-
withSearch
public boolean withSearch()Description copied from class:ReadTaskReturn true if search should be performed.- Overrides:
withSearchin classSearchTask
-
withTraverse
public boolean withTraverse()Description copied from class:ReadTaskReturn true if, with search, results should be traversed.- Overrides:
withTraversein classSearchTask
-
withWarm
public boolean withWarm()Description copied from class:ReadTaskReturn true if warming should be performed.- Overrides:
withWarmin classSearchTask
-