Class CloseIndexTask
Close index writer.
Other side effects: index writer object in perfRunData is nullified. Takes optional param "doWait": if false, then close(false) is called.Implements
Inherited Members
Namespace: Lucene.Net.Benchmarks.ByTask.Tasks
Assembly: Lucene.Net.Benchmark.dll
Syntax
public class CloseIndexTask : PerfTask, IDisposable
Constructors
CloseIndexTask(PerfRunData)
Close index writer.
Other side effects: index writer object in perfRunData is nullified. Takes optional param "doWait": if false, then close(false) is called.Declaration
public CloseIndexTask(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. |