org.apache.lucene.benchmark.byTask.tasks
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 org.apache.lucene.document.FieldSelector |
fieldSelector |
traversalSize
Constructor and Description |
---|
SearchTravRetLoadFieldSelectorTask(PerfRunData runData) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.lucene.document.Document |
retrieveDoc(org.apache.lucene.index.IndexReader ir,
int id) |
void |
setParams(java.lang.String params)
Set the params of this task.
|
boolean |
supportsParams()
Sub classes that supports 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, withWarm
doLogic, getBenchmarkHighlighter, getFieldsToHighlight, getSort, numHits, numToHighlight, setup, withMaxScore, withScore
clone, close, getDepth, getLogMessage, getName, getParams, getRunData, isDisableCounting, runAndMaybeStats, setDepth, setDisableCounting, setName, shouldNeverLogAtStart, shouldNotRecordStats, tearDown, toString
public SearchTravRetLoadFieldSelectorTask(PerfRunData runData)
public boolean withRetrieve()
ReadTask
withRetrieve
in class SearchTravTask
protected org.apache.lucene.document.Document retrieveDoc(org.apache.lucene.index.IndexReader ir, int id) throws java.io.IOException
retrieveDoc
in class ReadTask
java.io.IOException
public void setParams(java.lang.String params)
PerfTask
setParams
in class SearchTravTask
public boolean supportsParams()
PerfTask
supportsParams
in class SearchTravTask
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.