Class OpenIndexTask
Open an index writer.
Implements
Inherited Members
Namespace: Lucene.Net.Benchmarks.ByTask.Tasks
Assembly: Lucene.Net.Benchmark.dll
Syntax
public class OpenIndexTask : PerfTask, IDisposable
Remarks
Other side effects: index writer object in perfRunData is set.
Relevant properties:- merge.factor
- max.buffered
- max.field.length
- ram.flush.mb[default 0]
Constructors
OpenIndexTask(PerfRunData)
Open an index writer.
Declaration
public OpenIndexTask(PerfRunData runData)
Parameters
Type | Name | Description |
---|---|---|
PerfRunData | runData |
Remarks
Other side effects: index writer object in perfRunData is set.
Relevant properties:- merge.factor
- max.buffered
- max.field.length
- ram.flush.mb[default 0]
Fields
DEFAULT_MAX_BUFFERED
Open an index writer.
Declaration
public static readonly int DEFAULT_MAX_BUFFERED
Field Value
Type | Description |
---|---|
int |
Remarks
Other side effects: index writer object in perfRunData is set.
Relevant properties:- merge.factor
- max.buffered
- max.field.length
- ram.flush.mb[default 0]
DEFAULT_MERGE_PFACTOR
Open an index writer.
Declaration
public static readonly int DEFAULT_MERGE_PFACTOR
Field Value
Type | Description |
---|---|
int |
Remarks
Other side effects: index writer object in perfRunData is set.
Relevant properties:- merge.factor
- max.buffered
- max.field.length
- ram.flush.mb[default 0]
DEFAULT_RAM_FLUSH_MB
Open an index writer.
Declaration
public static readonly double DEFAULT_RAM_FLUSH_MB
Field Value
Type | Description |
---|---|
double |
Remarks
Other side effects: index writer object in perfRunData is set.
Relevant properties:- merge.factor
- max.buffered
- max.field.length
- ram.flush.mb[default 0]
Properties
SupportsParams
Sub classes that support parameters must override this method to return
true
if this task supports command line params.
Declaration
public override bool SupportsParams { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
Remarks
Other side effects: index writer object in perfRunData is set.
Relevant properties:- merge.factor
- max.buffered
- max.field.length
- ram.flush.mb[default 0]
Methods
DoLogic()
Perform the task once (ignoring repetitions specification). Return number of work items done by this task. For indexing that can be number of docs added. For warming that can be number of scanned items, etc.
Declaration
public override int DoLogic()
Returns
Type | Description |
---|---|
int | Number of work items done by this task. |
Overrides
Remarks
Other side effects: index writer object in perfRunData is set.
Relevant properties:- merge.factor
- max.buffered
- max.field.length
- ram.flush.mb[default 0]
SetParams(string)
Set the params of this task.
Declaration
public override void SetParams(string @params)
Parameters
Type | Name | Description |
---|---|---|
string | params |
Overrides
Remarks
Other side effects: index writer object in perfRunData is set.
Relevant properties:- merge.factor
- max.buffered
- max.field.length
- ram.flush.mb[default 0]
Exceptions
Type | Condition |
---|---|
NotSupportedException | For tasks supporting command line parameters. |