Cloneable
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 | Description |
---|---|---|
static int |
DEFAULT_MAX_BUFFERED |
|
static int |
DEFAULT_MAX_FIELD_LENGTH |
|
static int |
DEFAULT_MERGE_PFACTOR |
|
static double |
DEFAULT_RAM_FLUSH_MB |
Constructor | Description |
---|---|
OpenIndexTask(PerfRunData runData) |
Modifier and Type | Method | 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.
|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clone, close, getBackgroundDeltaPriority, getDepth, getLogMessage, getName, getParams, getRunData, getRunInBackground, isDisableCounting, runAndMaybeStats, setDepth, setDisableCounting, setName, setRunInBackground, setup, shouldNeverLogAtStart, shouldNotRecordStats, stopNow, tearDown, toString
public static final int DEFAULT_MAX_BUFFERED
public static final int DEFAULT_MAX_FIELD_LENGTH
public static final int DEFAULT_MERGE_PFACTOR
public static final double DEFAULT_RAM_FLUSH_MB
public OpenIndexTask(PerfRunData runData)
public int doLogic() throws IOException
PerfTask
doLogic
in class PerfTask
IOException
public void setParams(String params)
PerfTask
public boolean supportsParams()
PerfTask
supportsParams
in class PerfTask
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.