|
||||||||||
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.DeleteDocTask
public class DeleteDocTask
Delete a document by docid. If no docid param is supplied, deletes doc with
id = last-deleted-doc + doc.delete.step
.
Field Summary | |
---|---|
static int |
DEFAULT_DOC_DELETE_STEP
Gap between ids of deleted docs, applies when no docid param is provided. |
Fields inherited from class org.apache.lucene.benchmark.byTask.tasks.PerfTask |
---|
logStep, NEW_LINE, params, stopNow |
Constructor Summary | |
---|---|
DeleteDocTask(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 (docid only) |
void |
setup()
Task setup work that should not be measured for that specific task. |
boolean |
supportsParams()
Sub classes that support parameters must override this method to return true. |
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, tearDown, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_DOC_DELETE_STEP
Constructor Detail |
---|
public DeleteDocTask(PerfRunData runData)
Method Detail |
---|
public int doLogic() throws Exception
PerfTask
doLogic
in class PerfTask
Exception
public void setup() throws Exception
PerfTask
PerfTask.doLogic()
to this method. Only the work done in PerfTask.doLogic()
is measured for this task. Notice that higher level (sequence) tasks
containing this task would then measure larger time than the sum of their
contained tasks.
setup
in class PerfTask
Exception
protected String getLogMessage(int recsCount)
getLogMessage
in class PerfTask
public void setParams(String params)
setParams
in class PerfTask
params
- docid to delete, or -1 for deleting by delete gap settings.public boolean supportsParams()
PerfTask
supportsParams
in class PerfTask
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |