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 IndexDeletionPolicy |
getIndexDeletionPolicy(Config config) |
static void |
setIndexWriterConfig(IndexWriter writer,
Config config) |
clone, close, getDepth, getLogMessage, getName, getParams, getRunData, isDisableCounting, runAndMaybeStats, setDepth, setDisableCounting, setName, setParams, setup, shouldNeverLogAtStart, shouldNotRecordStats, supportsParams, tearDown, toString
public CreateIndexTask(PerfRunData runData)
public static void setIndexWriterConfig(IndexWriter writer, Config config) throws IOException
IOException
public static IndexDeletionPolicy getIndexDeletionPolicy(Config config)
public int doLogic() throws IOException
PerfTask
doLogic
in class PerfTask
IOException
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.