|
|||||||||
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.AddIndexesTask
public class AddIndexesTask
Adds an input index to an existing index, using
IndexWriter.addIndexes(Directory...)
or
IndexWriter.addIndexes(IndexReader...)
. The location of the input
index is specified by the parameter ADDINDEXES_INPUT_DIR
and is
assumed to be a directory on the file system.
Takes optional parameter useAddIndexesDir
which specifies which
addIndexes variant to use (defaults to true, to use addIndexes(Directory)).
Field Summary | |
---|---|
static String |
ADDINDEXES_INPUT_DIR
|
Fields inherited from class org.apache.lucene.benchmark.byTask.tasks.PerfTask |
---|
logStep, NEW_LINE, params, stopNow |
Constructor Summary | |
---|---|
AddIndexesTask(PerfRunData runData)
|
Method Summary | |
---|---|
int |
doLogic()
Perform the task once (ignoring repetitions specification) Return number of work items done by this task. |
void |
setParams(String params)
Set the params (useAddIndexesDir 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. |
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, getAlgLineNum, getBackgroundDeltaPriority, getDepth, getLogMessage, getName, getParams, getRunData, getRunInBackground, isDisableCounting, runAndMaybeStats, setAlgLineNum, setDepth, setDisableCounting, setName, setRunInBackground, shouldNeverLogAtStart, shouldNotRecordStats, stopNow, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String ADDINDEXES_INPUT_DIR
Constructor Detail |
---|
public AddIndexesTask(PerfRunData runData)
Method Detail |
---|
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
public int doLogic() throws Exception
PerfTask
doLogic
in class PerfTask
Exception
public void setParams(String params)
setParams
in class PerfTask
params
- useAddIndexesDir=true
for using
IndexWriter.addIndexes(Directory...)
or false
for
using IndexWriter.addIndexes(IndexReader...)
. Defaults to
true
.public boolean supportsParams()
PerfTask
supportsParams
in class PerfTask
public void tearDown() 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.
tearDown
in class PerfTask
Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |