Class ConsumeContentSourceTask
Consumes a ContentSource.
Implements
Inherited Members
Namespace: Lucene.Net.Benchmarks.ByTask.Tasks
Assembly: Lucene.Net.Benchmark.dll
Syntax
public class ConsumeContentSourceTask : PerfTask, IDisposable
Constructors
ConsumeContentSourceTask(PerfRunData)
Consumes a ContentSource.
Declaration
public ConsumeContentSourceTask(PerfRunData runData)
Parameters
Type | Name | Description |
---|---|---|
PerfRunData | runData |
Methods
Dispose(bool)
Releases resources used by the ConsumeContentSourceTask and if overridden in a derived class, optionally releases unmanaged resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing |
|
Overrides
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
GetLogMessage(int)
Consumes a ContentSource.
Declaration
protected override string GetLogMessage(int recsCount)
Parameters
Type | Name | Description |
---|---|---|
int | recsCount |
Returns
Type | Description |
---|---|
string |