Class WarmTask
- java.lang.Object
-
- org.apache.lucene.benchmark.byTask.tasks.PerfTask
-
- org.apache.lucene.benchmark.byTask.tasks.ReadTask
-
- org.apache.lucene.benchmark.byTask.tasks.WarmTask
-
- All Implemented Interfaces:
Cloneable
public class WarmTask extends ReadTask
Warm reader task: retrieve all reader documents.Note: This task reuses the reader if it is already open. Otherwise a reader is opened at start and closed at the end.
Other side effects: counts additional 1 (record) for each retrieved (non null) document.
-
-
Constructor Summary
Constructors Constructor Description WarmTask(PerfRunData runData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryMakergetQueryMaker()Return query maker used for this task.booleanwithRetrieve()Return true if, with search and results traversing, docs should be retrieved.booleanwithSearch()Return true if search should be performed.booleanwithTraverse()Return 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
createCollector, doLogic, getSort, numHits, retrieveDoc, setup, traversalSize, withCollector, withTopDocs, withTotalHits
-
Methods 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
-
-
-
-
Constructor Detail
-
WarmTask
public WarmTask(PerfRunData runData)
-
-
Method Detail
-
withRetrieve
public boolean withRetrieve()
Description copied from class:ReadTaskReturn true if, with search and results traversing, docs should be retrieved.- Specified by:
withRetrievein classReadTask
-
withSearch
public boolean withSearch()
Description copied from class:ReadTaskReturn true if search should be performed.- Specified by:
withSearchin classReadTask
-
withTraverse
public boolean withTraverse()
Description copied from class:ReadTaskReturn true if, with search, results should be traversed.- Specified by:
withTraversein classReadTask
-
withWarm
public boolean withWarm()
Description copied from class:ReadTaskReturn true if warming should be performed.
-
getQueryMaker
public QueryMaker getQueryMaker()
Description copied from class:ReadTaskReturn query maker used for this task.- Specified by:
getQueryMakerin classReadTask
-
-