Class CommitIndexTask
Commits the Lucene.Net.Index.IndexWriter.
Implements
Inherited Members
Namespace: Lucene.Net.Benchmarks.ByTask.Tasks
Assembly: Lucene.Net.Benchmark.dll
Syntax
public class CommitIndexTask : PerfTask, IDisposable
Constructors
CommitIndexTask(PerfRunData)
Commits the Lucene.Net.Index.IndexWriter.
Declaration
public CommitIndexTask(PerfRunData runData)
Parameters
Type | Name | Description |
---|---|---|
PerfRunData | runData |
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
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
SetParams(string)
Set the params of this task.
Declaration
public override void SetParams(string @params)
Parameters
Type | Name | Description |
---|---|---|
string | params |
Overrides
Exceptions
Type | Condition |
---|---|
NotSupportedException | For tasks supporting command line parameters. |