Class CreateIndexTask
Creates an index.
Implements
System.IDisposable
  Inherited Members
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
  Namespace: Lucene.Net.Benchmarks.ByTask.Tasks
Assembly: Lucene.Net.Benchmark.dll
Syntax
public class CreateIndexTask : PerfTask, IDisposable
  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
| Improve this Doc View SourceCreateIndexTask(PerfRunData)
Declaration
public CreateIndexTask(PerfRunData runData)
  Parameters
| Type | Name | Description | 
|---|---|---|
| PerfRunData | runData | 
Methods
| Improve this Doc View SourceConfigureWriter(Config, PerfRunData, OpenMode, IndexCommit)
Declaration
public static IndexWriter ConfigureWriter(Config config, PerfRunData runData, OpenMode mode, IndexCommit commit)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Config | config | |
| PerfRunData | runData | |
| OpenMode | mode | |
| IndexCommit | commit | 
Returns
| Type | Description | 
|---|---|
| IndexWriter | 
CreateWriterConfig(Config, PerfRunData, OpenMode, IndexCommit)
Declaration
public static IndexWriterConfig CreateWriterConfig(Config config, PerfRunData runData, OpenMode mode, IndexCommit commit)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Config | config | |
| PerfRunData | runData | |
| OpenMode | mode | |
| IndexCommit | commit | 
Returns
| Type | Description | 
|---|---|
| IndexWriterConfig | 
DoLogic()
Declaration
public override int DoLogic()
  Returns
| Type | Description | 
|---|---|
| System.Int32 | 
Overrides
| Improve this Doc View SourceGetIndexDeletionPolicy(Config)
Declaration
public static IndexDeletionPolicy GetIndexDeletionPolicy(Config config)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Config | config | 
Returns
| Type | Description | 
|---|---|
| IndexDeletionPolicy | 
Implements
      System.IDisposable