Class WriteLineDocTask
  
  A task which writes documents, one line per document. Each line is in the
following format: title <TAB> date <TAB> body. The output of this
task can be consumed by LineDocSource and is intended
to save the IO overhead of opening a file per document to be indexed.
 
  
  
    Inheritance
    System.Object
    
    WriteLineDocTask
      
   
  
    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)
    
   
  
  Assembly: Lucene.Net.Benchmark.dll
  Syntax
  
    public class WriteLineDocTask : PerfTask, IDisposable
   
  
  
  Constructors
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  WriteLineDocTask(PerfRunData)
  
  
  Declaration
  
    public WriteLineDocTask(PerfRunData runData)
   
  Parameters
  
  Fields
  
  
    |
    Improve this Doc
  
  
    View Source
  
  DEFAULT_FIELDS
  Fields to be written by default
 
  
  Declaration
  
    public static readonly string[] DEFAULT_FIELDS
   
  Field Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String[] | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  DEFAULT_SUFFICIENT_FIELDS
  Default fields which at least one of them is required to not skip the doc.
 
  
  Declaration
  
    public static readonly string DEFAULT_SUFFICIENT_FIELDS
   
  Field Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  
  
  Declaration
  
    public static readonly string FIELDS_HEADER_INDICATOR
   
  Field Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  m_fname
  
  
  Declaration
  
    protected readonly string m_fname
   
  Field Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  SEP
  
  
  Declaration
  
    public static readonly char SEP
   
  Field Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Char | 
         | 
      
    
  
  Properties
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  SupportsParams
  
  
  Declaration
  
    public override bool SupportsParams { get; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  Overrides
  
  Methods
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Dispose(Boolean)
  
  
  Declaration
  
    protected override void Dispose(bool disposing)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Boolean | 
        disposing | 
         | 
      
    
  
  Overrides
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  DoLogic()
  
  
  Declaration
  
    public override int DoLogic()
   
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int32 | 
         | 
      
    
  
  Overrides
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  GetLogMessage(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 Source
  
  
  LineFileOut(Document)
  Selects output line file by written doc.
Default: original output line file.
 
  
  Declaration
  
    protected virtual TextWriter LineFileOut(Document doc)
   
  Parameters
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.IO.TextWriter | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  SetParams(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 Source
  
  
  
  Write header to the lines file - indicating how to read the file later.
 
  
  Declaration
  
    protected virtual void WriteHeader(TextWriter out)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.IO.TextWriter | 
        out | 
         | 
      
    
  
  Implements
  
      System.IDisposable