|
||||||||||
| 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.WriteLineDocTask
public class WriteLineDocTask
| Field Summary | |
|---|---|
static int |
DEFAULT_WRITELINE_DOC_LOG_STEP
Default value for property doc.add.log.step |
static String |
SEP
|
| Fields inherited from class org.apache.lucene.benchmark.byTask.tasks.PerfTask |
|---|
NEW_LINE, params |
| Constructor Summary | |
|---|---|
WriteLineDocTask(PerfRunData runData)
|
|
| Method Summary | |
|---|---|
int |
doLogic()
Perform the task once (ignoring repetions specification) Return number of work items done by this task. |
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 overide 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, getDepth, getName, getParams, getRunData, runAndMaybeStats, setDepth, setName, shouldNeverLogAtStart, shouldNotRecordStats, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_WRITELINE_DOC_LOG_STEP
doc.add.log.step - indicating how often
an "added N docs" message should be logged.
- See Also:
- Constant Field Values
public static final String SEP
| Constructor Detail |
|---|
public WriteLineDocTask(PerfRunData runData)
| Method Detail |
|---|
public void setup()
throws Exception
PerfTask
setup in class PerfTaskException
public void tearDown()
throws Exception
PerfTask
tearDown in class PerfTaskException
public int doLogic()
throws Exception
PerfTask
doLogic in class PerfTaskExceptionpublic void setParams(String params)
setParams in class PerfTaskparams - 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 | |||||||||