public class OpenIndexTask extends PerfTask
merge.factor, max.buffered,
max.field.length, ram.flush.mb [default 0].
Accepts a param specifying the commit point as previously saved with CommitIndexTask. If you specify this, it rolls the index back to that commit on opening the IndexWriter.
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_BUFFERED |
static int |
DEFAULT_MERGE_PFACTOR |
static double |
DEFAULT_RAM_FLUSH_MB |
| Constructor and Description |
|---|
OpenIndexTask(PerfRunData runData) |
| Modifier and Type | Method and Description |
|---|---|
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 of this task.
|
boolean |
supportsParams()
Sub classes that support parameters must override this method to return
true.
|
clone, close, getAlgLineNum, getBackgroundDeltaPriority, getDepth, getLogMessage, getName, getParams, getRunData, getRunInBackground, isDisableCounting, runAndMaybeStats, setAlgLineNum, setDepth, setDisableCounting, setName, setRunInBackground, setup, shouldNeverLogAtStart, shouldNotRecordStats, stopNow, tearDown, toStringpublic static final int DEFAULT_MAX_BUFFERED
public static final int DEFAULT_MERGE_PFACTOR
public static final double DEFAULT_RAM_FLUSH_MB
public OpenIndexTask(PerfRunData runData)
public int doLogic()
throws IOException
PerfTaskdoLogic in class PerfTaskIOExceptionpublic void setParams(String params)
PerfTaskpublic boolean supportsParams()
PerfTasksupportsParams in class PerfTaskCopyright © 2000-2024 Apache Software Foundation. All Rights Reserved.