|
||||||||||
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.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 |
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 java.lang.String |
getLogMessage(int recsCount)
|
void |
setParams(java.lang.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, getDepth, getName, getParams, getRunData, isDisableCounting, runAndMaybeStats, setDepth, setDisableCounting, setName, shouldNeverLogAtStart, shouldNotRecordStats, 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 java.lang.Exception
PerfTask
setup
in class PerfTask
java.lang.Exception
public void tearDown() throws java.lang.Exception
PerfTask
tearDown
in class PerfTask
java.lang.Exception
protected java.lang.String getLogMessage(int recsCount)
getLogMessage
in class PerfTask
public int doLogic() throws java.lang.Exception
PerfTask
doLogic
in class PerfTask
java.lang.Exception
public void setParams(java.lang.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 |