public class CreateIndexTask extends PerfTask
merge.factor, max.buffered,
max.field.length, ram.flush.mb [default 0], autocommit
[default true].
This task also supports a "writer.info.stream" property with the following values:
IndexWriter.setInfoStream(java.io.PrintStream)
to System.out.
IndexWriter.setInfoStream(java.io.PrintStream)
to System.err.
IndexWriter.setInfoStream(java.io.PrintStream) to that file. If this
denotes an invalid file name, or some error occurs, an exception will be
thrown.
| Constructor and Description |
|---|
CreateIndexTask(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.
|
static org.apache.lucene.index.IndexDeletionPolicy |
getIndexDeletionPolicy(Config config) |
static void |
setIndexWriterConfig(org.apache.lucene.index.IndexWriter writer,
Config config) |
clone, close, getDepth, getLogMessage, getName, getParams, getRunData, isDisableCounting, runAndMaybeStats, setDepth, setDisableCounting, setName, setParams, setup, shouldNeverLogAtStart, shouldNotRecordStats, supportsParams, tearDown, toStringpublic CreateIndexTask(PerfRunData runData)
public static void setIndexWriterConfig(org.apache.lucene.index.IndexWriter writer,
Config config)
throws java.io.IOException
java.io.IOExceptionpublic static org.apache.lucene.index.IndexDeletionPolicy getIndexDeletionPolicy(Config config)
public int doLogic()
throws java.io.IOException
PerfTaskCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.