Class CreateIndexTask
Creates an index.
Inherited Members
Assembly: Lucene.Net.Benchmark.dll
Syntax
public class CreateIndexTask : PerfTask
Remarks
Other side effects: index writer object in perfRunData is set.
Relevant properties:
- merge.factor(default 10)
- max.buffered(default no flush)
- compound(default true)
- ram.flush.mb[default 0]
- merge.policy(default Lucene.Net.Index.LogByteSizeMergePolicy, Lucene.Net)
- merge.scheduler(default Lucene.Net.Index.ConcurrentMergeScheduler, Lucene.Net)
- concurrent.merge.scheduler.max.thread.count(defaults per ConcurrentMergeScheduler)
- concurrent.merge.scheduler.max.merge.count(defaults per ConcurrentMergeScheduler)
- default.codec
This task also supports a "writer.info.stream" property with the following values:
- SystemOutSets SetInfoStream(InfoStream) to Out.
- SystemErrSets SetInfoStream(InfoStream) to Error
- <file_name> Attempts to create a file given that name and sets SetInfoStream(InfoStream) to that file. If this denotes an invalid file name, or some error occurs, an exception will be thrown.
Constructors
Name | Description |
---|---|
CreateIndexTask(PerfRunData) |
Methods
Name | Description |
---|---|
ConfigureWriter(Config, PerfRunData, OpenMode, IndexCommit) | |
CreateWriterConfig(Config, PerfRunData, OpenMode, IndexCommit) | |
DoLogic() | |
GetIndexDeletionPolicy(Config) |