|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.benchmark.byTask.tasks.PerfTask
org.apache.lucene.benchmark.byTask.tasks.ReadTask
Read index (abstract) task. Sub classes implement withSearch(), withWarm(), withTraverse() and withRetrieve() methods to configure the actual action. Other side effects: none.
Field Summary |
Fields inherited from class org.apache.lucene.benchmark.byTask.tasks.PerfTask |
NEW_LINE, params |
Constructor Summary | |
ReadTask(PerfRunData runData)
|
Method Summary | |
int |
doLogic()
Perform the task once (ignoring repetions specification) Return number of work items done by this task. |
abstract QueryMaker |
getQueryMaker()
Return query maker used for this task. |
abstract boolean |
withRetrieve()
Return true if, with search & results traversing, docs should be retrieved. |
abstract boolean |
withSearch()
Return true if search should be performed. |
abstract boolean |
withTraverse()
Return true if, with search, results should be traversed. |
abstract boolean |
withWarm()
Return true if warming should be performed. |
Methods inherited from class org.apache.lucene.benchmark.byTask.tasks.PerfTask |
clone, getDepth, getName, getParams, getRunData, runAndMaybeStats, setDepth, setName, setParams, setup, shouldNeverLogAtStart, shouldNotRecordStats, tearDown, toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ReadTask(PerfRunData runData)
Method Detail |
public int doLogic() throws Exception
PerfTask
doLogic
in class PerfTask
Exception
public abstract QueryMaker getQueryMaker()
public abstract boolean withSearch()
public abstract boolean withWarm()
public abstract boolean withTraverse()
public abstract boolean withRetrieve()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |