Class AddDocTask
Add a document, optionally of a certain size.
Other side effects: none.
Takes optional param: document size.
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 AddDocTask : PerfTask, IDisposable
  Constructors
| Improve this Doc View SourceAddDocTask(PerfRunData)
Declaration
public AddDocTask(PerfRunData runData)
  Parameters
| Type | Name | Description | 
|---|---|---|
| PerfRunData | runData | 
Fields
| Improve this Doc View Sourcem_doc
Volatile data passed between Setup(), DoLogic(), TearDown(). The doc is created at Setup() and added at DoLogic().
Declaration
protected Document m_doc
  Field Value
| Type | Description | 
|---|---|
| Document | 
Properties
| Improve this Doc View SourceSupportsParams
Declaration
public override bool SupportsParams { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
Overrides
See Also
Methods
| Improve this Doc View SourceDoLogic()
Declaration
public override int DoLogic()
  Returns
| Type | Description | 
|---|---|
| System.Int32 | 
Overrides
| Improve this Doc View SourceGetLogMessage(Int32)
Declaration
protected override string GetLogMessage(int recsCount)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | recsCount | 
Returns
| Type | Description | 
|---|---|
| System.String | 
Overrides
| Improve this Doc View SourceSetParams(String)
Set the params (docSize only).
Declaration
public override void SetParams(string params)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | params | docSize, or 0 for no limit.  | 
      
Overrides
| Improve this Doc View SourceSetup()
Declaration
public override void Setup()
  Overrides
| Improve this Doc View SourceTearDown()
Declaration
public override void TearDown()
  Overrides
Implements
      System.IDisposable