|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.benchmark.byTask.tasks.PerfTask org.apache.lucene.benchmark.byTask.tasks.ReadTask org.apache.lucene.benchmark.byTask.tasks.SearchWithSortTask
public class SearchWithSortTask
Does sort search on specified field.
Field Summary |
---|
Fields inherited from class org.apache.lucene.benchmark.byTask.tasks.PerfTask |
---|
logStep, NEW_LINE, params, stopNow |
Constructor Summary | |
---|---|
SearchWithSortTask(PerfRunData runData)
|
Method Summary | |
---|---|
QueryMaker |
getQueryMaker()
Return query maker used for this task. |
Sort |
getSort()
|
void |
setParams(String sortField)
SortFields: field:type,field:type[,noscore][,nomaxscore] If noscore is present, then we turn off score tracking in TopFieldCollector . |
boolean |
supportsParams()
Sub classes that supports parameters must override this method to return true. |
boolean |
withMaxScore()
Whether maxScores should be computed (only useful with field sort) |
boolean |
withRetrieve()
Return true if, with search & results traversing, docs should be retrieved. |
boolean |
withScore()
Whether scores should be computed (only useful with field sort) |
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 |
---|
createCollector, doLogic, getBenchmarkHighlighter, getFieldsToHighlight, numHits, numToHighlight, retrieveDoc, setup, traversalSize, withCollector |
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, setRunInBackground, shouldNeverLogAtStart, shouldNotRecordStats, stopNow, tearDown, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SearchWithSortTask(PerfRunData runData)
Method Detail |
---|
public void setParams(String sortField)
TopFieldCollector
.
If nomaxscore is present, then we turn off maxScore tracking
in TopFieldCollector
.
name:string,page:int,subject:string
setParams
in class PerfTask
public boolean supportsParams()
PerfTask
supportsParams
in class PerfTask
public QueryMaker getQueryMaker()
ReadTask
getQueryMaker
in class ReadTask
public boolean withRetrieve()
ReadTask
withRetrieve
in class ReadTask
public boolean withSearch()
ReadTask
withSearch
in class ReadTask
public boolean withTraverse()
ReadTask
withTraverse
in class ReadTask
public boolean withWarm()
ReadTask
withWarm
in class ReadTask
public boolean withScore()
ReadTask
withScore
in class ReadTask
public boolean withMaxScore()
ReadTask
withMaxScore
in class ReadTask
public Sort getSort()
getSort
in class ReadTask
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |