org.apache.lucene.benchmark.byTask.tasks

Class DeleteDocTask

public class DeleteDocTask extends PerfTask

Delete a document by docid.
Other side effects: none.
Relevant properties: doc.delete.log.step , doc.delete.step.
If no docid param is supplied, deletes doc with id = last-deleted-doc + doc.delete.step.
Takes optional param: document id.
Field Summary
static intDEFAULT_DELETE_DOC_LOG_STEP
Default value for property doc.delete.log.step - indicating how often an "deleted N docs" message should be logged.
static intDEFAULT_DOC_DELETE_STEP
Gap between ids of deleted docs, applies when no docid param is provided.
Constructor Summary
DeleteDocTask(PerfRunData runData)
Method Summary
intdoLogic()
voidsetParams(String params)
Set the params (docid only)
voidsetup()
booleansupportsParams()
voidtearDown()

Field Detail

DEFAULT_DELETE_DOC_LOG_STEP

public static final int DEFAULT_DELETE_DOC_LOG_STEP
Default value for property doc.delete.log.step - indicating how often an "deleted N docs" message should be logged.

DEFAULT_DOC_DELETE_STEP

public static final int DEFAULT_DOC_DELETE_STEP
Gap between ids of deleted docs, applies when no docid param is provided.

Constructor Detail

DeleteDocTask

public DeleteDocTask(PerfRunData runData)

Method Detail

doLogic

public int doLogic()

setParams

public void setParams(String params)
Set the params (docid only)

Parameters: params docid to delete, or -1 for deleting by delete gap settings.

setup

public void setup()

supportsParams

public boolean supportsParams()

tearDown

public void tearDown()
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.