|
||||||||||
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.AddDocTask
public class AddDocTask
Add a document, optionally with of a certain size.
Other side effects: none.
Takes optional param: document size.
Field Summary |
---|
Fields inherited from class org.apache.lucene.benchmark.byTask.tasks.PerfTask |
---|
logStep, NEW_LINE, params, stopNow |
Constructor Summary | |
---|---|
AddDocTask(PerfRunData runData)
|
Method Summary | |
---|---|
int |
doLogic()
Perform the task once (ignoring repetitions specification) Return number of work items done by this task. |
protected String |
getLogMessage(int recsCount)
|
void |
setParams(String params)
Set the params (docSize only) |
void |
setup()
Task setup work that should not be measured for that specific task. |
boolean |
supportsParams()
Sub classes that supports parameters must override this method to return true. |
void |
tearDown()
Task tearDown work that should not be measured for that specific task. |
Methods inherited from class org.apache.lucene.benchmark.byTask.tasks.PerfTask |
---|
clone, close, getBackgroundDeltaPriority, getDepth, getName, getParams, getRunData, getRunInBackground, isDisableCounting, runAndMaybeStats, setDepth, setDisableCounting, setName, setRunInBackground, shouldNeverLogAtStart, shouldNotRecordStats, stopNow, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AddDocTask(PerfRunData runData)
Method Detail |
---|
public void setup() throws Exception
PerfTask
setup
in class PerfTask
Exception
public void tearDown() throws Exception
PerfTask
tearDown
in class PerfTask
Exception
protected String getLogMessage(int recsCount)
getLogMessage
in class PerfTask
public int doLogic() throws Exception
PerfTask
doLogic
in class PerfTask
Exception
public void setParams(String params)
setParams
in class PerfTask
params
- docSize, or 0 for no limit.public boolean supportsParams()
PerfTask
supportsParams
in class PerfTask
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |