public class SearchTravRetLoadFieldSelectorTask extends SearchTravTask
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: comma separated list of Fields to load.
Other side effects: counts additional 1 (record) for each traversed hit, and 1 more for each retrieved (non null) document.
| Modifier and Type | Field and Description |
|---|---|
protected FieldSelector |
fieldSelector |
traversalSize| Constructor and Description |
|---|
SearchTravRetLoadFieldSelectorTask(PerfRunData runData) |
| Modifier and Type | Method and Description |
|---|---|
protected Document |
retrieveDoc(IndexReader ir,
int id) |
void |
setParams(String params)
Set the params of this task.
|
boolean |
supportsParams()
Sub classes that support parameters must override this method to return
true.
|
boolean |
withRetrieve()
Return true if, with search & results traversing, docs should be retrieved.
|
getQueryMaker, traversalSize, withSearch, withTraverse, withWarmcreateCollector, doLogic, getBenchmarkHighlighter, getFieldsToHighlight, getSort, numHits, numToHighlight, setup, withCollector, withMaxScore, withScoreclone, close, getBackgroundDeltaPriority, getDepth, getLogMessage, getName, getParams, getRunData, getRunInBackground, isDisableCounting, runAndMaybeStats, setDepth, setDisableCounting, setName, setRunInBackground, shouldNeverLogAtStart, shouldNotRecordStats, stopNow, tearDown, toStringprotected FieldSelector fieldSelector
public SearchTravRetLoadFieldSelectorTask(PerfRunData runData)
public boolean withRetrieve()
ReadTaskwithRetrieve in class SearchTravTaskprotected Document retrieveDoc(IndexReader ir, int id) throws IOException
retrieveDoc in class ReadTaskIOExceptionpublic void setParams(String params)
PerfTasksetParams in class SearchTravTaskpublic boolean supportsParams()
PerfTasksupportsParams in class SearchTravTaskCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.